[R] Simple numeric "as.is" question

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Mon Mar 15 16:22:25 CET 2004



Janet Gannon wrote:

> I am reading a list of numbers from my clipboard, and have been 
> successful, except I can't make a histogram as R doesn't recognize my 
> variable as numeric.  I know I need to use "as.is", but the specifics 
> escape me.
> I have used x<-read.table("clipboard", header=F) to import from a txt 
> file.  How do make this numeric?  Thanks, J.
> 

Please (re-)read ?read.table. Specifically, the "as.is" and "colClasses" 
arguments.

-sundar




More information about the R-help mailing list