[R] Changing values (factors) does not change levels of that value?!

David Winsemius dwinsemius at comcast.net
Sun Nov 16 16:43:26 CET 2008


On Nov 16, 2008, at 9:25 AM, Philipp Pagel wrote:
>
snip
>
> As you are reading the data from a file anyway, the simplest
> solution would probably be to use the colClasses argument ot
> read.table in order to get numeric avlues in the first place.

Or use stringsAsFactors = FALSE,

If you have a number of variables greater than 10, setting up  
colClasses can be fairly laborious and error prone, at least for this  
newbie.

-- 
David Winsemius, MD
Heritage Labs


>
>
> cu
> 	Philipp
>
>
> -- 
> Dr. Philipp Pagel
> Lehrstuhl für Genomorientierte Bioinformatik
> Technische Universität München
> Wissenschaftszentrum Weihenstephan
> 85350 Freising, Germany
> http://mips.gsf.de/staff/pagel
>
> ______________________________________________
> 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