[R] reading data on code script.

Gabor Grothendieck ggrothendieck at gmail.com
Sun Dec 16 16:50:03 CET 2007


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
<milton_ruser at yahoo.com.br> wrote:
> Dear All,
>
> It there a way of I read my data tab-separated on the own script, without read from a external file and without type the data?
>
> I would like something like
>
> mydata<- read.data(head=T, sep="\t")
> freqesperado
> 117.5
> 147.5
> 47.5
> 17.5
>
> ##END OF DATA
>
> Many thanks, miltinho
>
>
>
>  para armazenamento!
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list