[R] Is it possible to transform a factor to a number like this way?

Greg Snow Greg.Snow at imail.org
Fri Apr 30 20:07:29 CEST 2010


This is a Frequently Asked Question, so frequently in fact that it is found in the FAQ along with a couple of answers and discussion of their merits.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of song song
> Sent: Thursday, April 29, 2010 3:06 PM
> To: r-help at r-project.org
> Subject: [R] Is it possible to transform a factor to a number like this
> way?
> 
> such a factor as   a=as.factor(c(1.23, 4.56, 7.89))  and I want to get
> this
> vector: c(1.23, 4.56, 7.89).
> Thanks
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list