[R] Change teh datatype from factor to double

David Winsemius dwinsemius at comcast.net
Tue Mar 24 12:57:00 CET 2009


?read.table

Consult the help file for the parameters:

as.is =    or
stringsAsFactors =

-- David Winsemius

On Mar 24, 2009, at 4:22 AM, Maxl18 wrote:

>
> Hi all,
> I want to read a .txt dataset, but when I test the type, some of the  
> data is
> a factor.
> How can I avoid them to get a factor or how can I unfactor them  
> without
> loosing their values?
>
> Thanks, Max
> -- 
> View this message in context: http://www.nabble.com/Change-teh-datatype-from-factor-to-double-tp22675854p22675854.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list