Hi,
Suppose your data frame is called data and the name of the factor column
is named tobeConverted. I have tried this and it worked. Hope this helps.
as.numeric(as.character(data$tobeConverted))
--
View this message in context:
Hi everybody,
I have another question (to which I could not find an answer in my r-books.
I am sure, it's not a great issue, but I simply lack of a good idea how to
solve this:
One of my variables gets imported as a factor instead of a numeric variable.
Now I have a...
Factor w/ 63 levels
Hello, David,
take a look at the beginning of the Warning section of ?factor.
Hth -- Gerrit
Hi everybody,
I have another question (to which I could not find an answer in my r-books.
I am sure, it's not a great issue, but I simply lack of a good idea how to
solve this:
One of my variables
-help@r-project.org
Subject: Re: [R] factor levels numeric values
Hello, David,
take a look at the beginning of the Warning section of ?factor.
Hth -- Gerrit
Hi everybody,
I have another question (to which I could not find an answer in my r-books.
I am sure, it's not a great issue, but I
Eichner
Sent: Wednesday, November 12, 2014 8:06 AM
To: David Studer
Cc: r-help@r-project.org
Subject: Re: [R] factor levels numeric values
Hello, David,
take a look at the beginning of the Warning section of ?factor.
Hth -- Gerrit
Hi everybody,
I have another question (to which I could
-4352
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Gerrit Eichner
Sent: Wednesday, November 12, 2014 8:06 AM
To: David Studer
Cc: r-help@r-project.org
Subject: Re: [R] factor levels numeric values
Hello, David,
take a look
6 matches
Mail list logo