Skip to content
Prev 237982 / 398500 Next

Drop matching lines from readLines

Dear R-group,

I have some noise in my text file (coding issues!) ...  I imported a 200 MB
text file using readlines
Used grep to find the lines with the error?

What is the easiest way to drop those lines? I plan to write back the
"cleaned" data set to my base file.

Thanks.