Re: [R] Drop matching lines from readLines

2010-10-14 Thread Santosh Srinivas
Yes, thanks ... that works. -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: 14 October 2010 21:26 To: Mike Marchywka Cc: santosh.srini...@gmail.com; r-help@r-project.org Subject: Re: [R] Drop matching lines from readLines If I understand correctly, the poster

Re: [R] Drop matching lines from readLines

2010-10-14 Thread Bert Gunter
2010 at 4:05 AM, Mike Marchywka wrote: > > > > > > > >> From: santosh.srini...@gmail.com >> To: r-help@r-project.org >> Date: Thu, 14 Oct 2010 11:27:57 +0530 >> Subject: [R] Drop matching lines from readLines &

Re: [R] Drop matching lines from readLines

2010-10-14 Thread Mike Marchywka
> From: santosh.srini...@gmail.com > To: r-help@r-project.org > Date: Thu, 14 Oct 2010 11:27:57 +0530 > Subject: [R] Drop matching lines from readLines > > Dear R-group, > > I have some noise in my text file (coding issues!)

Re: [R] Drop matching lines from readLines

2010-10-13 Thread Santosh Srinivas
I guess "invert" does the trick. For recording ... example .. file <- grep("Repurchase Price",file, fixed = TRUE, invert = TRUE) -Original Message- From: Santosh Srinivas [mailto:santosh.srini...@gmail.com] Sent: 14 October 2010 11:28 To: 'r-help' Subject: Drop matching lines from readL

[R] Drop matching lines from readLines

2010-10-13 Thread Santosh Srinivas
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. _