[R] File reading.

Laurent Gautier laurent at genome.cbs.dtu.dk
Wed Oct 17 14:55:36 CEST 2001



Laurent Gautier			CBS, Building 208, DTU
PhD. Student			D-2800 Lyngby,Denmark	
tel: +45 45 25 24 85		http://www.cbs.dtu.dk/laurent

On Wed, 17 Oct 2001, Randall Skelton wrote:

> My problems are that R seems to be tied to the line numbers on which data
> is found and that the scan function doesn't remember where it last was...
> Is there some C-like fopen/fread construct that I am missing?


The use of connections could be something worth being tried.

The command 'readLines' reads lines from a connection (and in this sense
'remembers' where it last was...)

try 

help(file)
help(readLines)


Hopin' it helps,



Laurent

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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