Re: [R] factor levels > numeric values

2015-02-11 Thread JS Huang
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

Re: [R] factor levels > numeric values

2014-11-12 Thread Jeff Newmiller
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

Re: [R] factor levels > numeric values

2014-11-12 Thread Ivan Calandra
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

Re: [R] factor levels > numeric values

2014-11-12 Thread David L Carlson
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

Re: [R] factor levels > numeric values

2014-11-12 Thread Gerrit Eichner
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