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:
http://r.789695.n4.nabble.com/factor-levels-numeric-values
ent of Anthropology
>Texas A&M University
>College Station, TX 77840-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-he
rrit 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 que
c: 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 not find an answer in my r-books.
> I am
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 variable
5 matches
Mail list logo