[R] R input file scanning

Roger D. Peng rpeng at jhsph.edu
Thu Nov 6 23:31:15 CET 2003


You can use readLines() on a file connection to read line by line and 
throw out the header stuff.  Once you get to the point where the data 
start, you can use read.table() (or something similar).

-roger

Mathieu Drapeau wrote:

> Hi,
> I would like to know how can I solve my problem...
> I want to load some data (surrounded by a tag) that are stored in a 
> file that contains also some scrap (header and descriptions) that I 
> want to skip. How can I do that?
>
> Thanks,
> Mathieu
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list