Re: [R] reading data on code script.

2007-12-16 Thread Prof Brian Ripley
Yes, for some ways of running a script (and you haven't told us how your intend to run this). E.g. % Rscript foo.R works, where % cat foo.R mydata <- read.table(stdin(), header=TRUE, sep="\t", nrow=6) freqesperado 117.5 147.5 47.5 17.5 27.7 16.3 mydata But, e.g. you can't use source() (it pa

Re: [R] reading data on code script.

2007-12-16 Thread Gabor Grothendieck
Try this: Lines <- "freqesperado 117.5 147.5 47.5 17.5 " read.table(textConnection(Lines), header = TRUE) On Dec 16, 2007 10:47 AM, Milton Cezar Ribeiro <[EMAIL PROTECTED]> wrote: > Dear All, > > It there a way of I read my data tab-separated on the own script, without > read from a external fil