Displaying 1 result from an estimated 1 matches for "stopline".
Did you mean:
topline
2004 Oct 25
2
Reading sections of data files based on pattern matching
...Column2 Column3 ...
Row1 1 2 3 ...
...
@@End OtherValues@@
I looked in the help files and found grep which operates on character
strings, do I have to like this then?
1. Read file with readLines("foo.txt")
2. grep this object for the start and end of each section ->startline &
stopline
3. Read the file again with
read.table("foo.txt",skip=startline,nrows=stoplin-startline)
Or is there a more beautiful way?
Cheers,
---------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400...