[R] Preprocessing troublesome files in R - looking for some perl like functionality

Andy Bunn abunn at whrc.org
Thu Jun 2 20:12:24 CEST 2005


> x <- readLines(...)
> tmp <- file()
> writeLines(x[substr(x, 83, 86) == "STD"], tmp)
> read.fwf(tmp, ...)

I wrapped this approach into function and it worked swimmingly. Thanks
all. -Andy




More information about the R-help mailing list