I have many files with a lot of headers and text at the beginning of the file. The headers are not uniform though and they contain different sizes Is there a way where I can read a table and skip all of the headers/text on top of it until I encounter a certain text pattern? Here is an example. I just want to read the table after the ~A.
~Version Information
#
Dear All,
VERS. 2.00: CWLS log ASCII Standard -VERSION 2.00
WRAP. NO: One line per depth step
#
#
~Well Information Block
#MNEM.UNIT Data Type Description
#--------- ----------- ----------------
STRT.M 51.000 :START DEPTH
STOP.M .010 :STOP DEPTH
STEP.M -.010 :STEP
#
#
~Curve Information Block
#MNEM.UNIT Curve Description
#--------- -----------------------------
DEPT.M :DEPTH
GRDE.GAPI :GAMMA FROM DENSITY TOOL
CODE.G/C3 :COMPENSATED DENSITY
#
#
~A Depth GRDE CODE LSDU BRDU CADE DENL DENB ADEN VL2F VL4F VL6F VL2A
51.000 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
50.990 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
50.980 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
50.970 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
50.960 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
50.950 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
50.940 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25 -999.25
______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 31 Aug 2011 - 02:28:04 GMT
This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]
Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.
Archive generated by hypermail 2.2.0, at Wed 31 Aug 2011 - 13:40:18 GMT.
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.