On Mon, Mar 15, 2004 at 09:04:05AM -0500, 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.

x <- read.table("clipboard", header=F)
x <- as.data.frame(lapply(x, as.numeric))

--
WBR,
Timur

______________________________________________
[EMAIL PROTECTED] 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

Reply via email to