[R] Newbie query - reading data into R
andyelv at ibm.net
Tue Jan 26 10:30:09 CET 1999
( This may seem a basic query, but anyway ... here goes ... :-)
I have a simple ASCII dataset which I'm trying to read into R (and
trying to get R to accept it as a data-frame). The data is of the form
- and so on. The data is separated by tabs , as above.
I use the read.table function as follows -
a <- read.table("C:\\RNew\\Doc\\data1.txt",as.is=F,header=T)
This reads the data in OK, but it is as a list - not as a data-frame.
How can I use the read.table function to read the data into a
I have documentation for S-plus and have read the R documentation, but
so far - no success.
Hope someone can help here..... :-) Thanks in advance.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help