Re: [R] sscanf equivalent

2005-10-09 Thread Paul Roebuck
On Fri, 7 Oct 2005, Prof Brian Ripley wrote: > On Fri, 7 Oct 2005, Paul Roebuck wrote: > > > I have a data file from which I need to read portions of > > data but data location/quantity can change from file to file. > > I wrote some code and have a working solution but it seems > > wasteful to hav

Re: [R] sscanf equivalent

2005-10-07 Thread Prof Brian Ripley
Why not use a text connection? On Fri, 7 Oct 2005, Paul Roebuck wrote: > I have a data file from which I need to read portions of > data but data location/quantity can change from file to file. > I wrote some code and have a working solution but it seems > wasteful to have to do it this way. Here

[R] sscanf equivalent

2005-10-07 Thread Paul Roebuck
I have a data file from which I need to read portions of data but data location/quantity can change from file to file. I wrote some code and have a working solution but it seems wasteful to have to do it this way. Here's the contrived incomplete code. datalines <- readLines(datafile.pathname)