[R] Reading from files

Saket Joshi joshi at engr.orst.edu
Thu May 2 02:11:33 CEST 2002


I am a novice to R and have a question here. Is it possible to read a
single line from a file into a vector or list etc? If so, is it possible
to read comma separated values?

How do I read the first line only i.e. 1000,x,y,z from the file and that
too so that I get separate storage for 1000, x, y and z?

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 mailing list