[R] Simple numeric "as.is" question

Liaw, Andy andy_liaw at merck.com
Mon Mar 15 16:16:45 CET 2004


If read.table() is not recognizing the data as numeric, there's probably
something in the content that confused read.table().  You can try using 

x <- scan("clipboard") 

instead and see if and how it chokes.

Andy

> From: Janet Gannon
> 
> 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.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}




More information about the R-help mailing list