Thank you very much. Your advice solved my problem.
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-extract-particular-words-from-various-files-tp4099607p4117333.html
Sent from the R help mailing list archive at Nabble.com.
__
R
try this: if line locations are not fixed, then use grepl to find the
matching line -
> x <- readLines(textConnection("# using minimal fraction of valid points 30.00
+ # tas [K] from bcc-csm1-1 model output prepared for CMIP5 RCP8.5
+ # cutting out region lon=0.000 360.000, lat= -90.000 9
Dear R-help guys,
I am trying to extract two particular words from different files but I am
struggling with the code. The first theree lines of each folder are as
follows:
# using minimal fraction of valid points 30.00
# tas [K] from bcc-csm1-1 model output prepared for CMIP5 RCP8.5
# cutting ou
3 matches
Mail list logo