[R] Proper use of grep
Erik Iverson
eriki at ccbr.umn.edu
Thu Jul 15 23:40:25 CEST 2010
Doran, Harold wrote:
> Thanks. Yes, I did that on a toy data set and with my real data. It
> *seems* to have worked. I just work with grep so rarely that I didn't
> want to miss something.
Yes, I see no reason why it won't work. You can do another check
'manually'. You know how many of each you expect by
>table(all$Classical.Statistic)
So you can add up the ones that you care about, and then make sure that
your resulting subset using grep has that many rows...
More information about the R-help
mailing list