Re: [R] Proper use of grep

2010-07-15 Thread Doran, Harold
Excellent idea -Original Message- From: Erik Iverson [mailto:er...@ccbr.umn.edu] Sent: Thursday, July 15, 2010 5:40 PM To: Doran, Harold Cc: r-help@r-project.org Subject: Re: [R] Proper use of grep Doran, Harold wrote: > Thanks. Yes, I did that on a toy data set and with my real d

Re: [R] Proper use of grep

2010-07-15 Thread Doran, Harold
arold Cc: r-help@r-project.org Subject: Re: [R] Proper use of grep Doran, Harold wrote: > I just need to confirm something with pattern matching folks. I have > a factor with the following levels in a very large data set: > >> levels(all$Classical.Statistic) > [1] "&quo

Re: [R] Proper use of grep

2010-07-15 Thread Erik Iverson
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 e

Re: [R] Proper use of grep

2010-07-15 Thread Erik Iverson
Doran, Harold wrote: I just need to confirm something with pattern matching folks. I have a factor with the following levels in a very large data set: levels(all$Classical.Statistic) [1] """AB;ABD" "CollapsedSteps" "CR_P""CR_Prop;CR_P;AB"

[R] Proper use of grep

2010-07-15 Thread Doran, Harold
I just need to confirm something with pattern matching folks. I have a factor with the following levels in a very large data set: > levels(all$Classical.Statistic) [1] """AB;ABD" "CollapsedSteps" "CR_P""CR_Prop;CR_P;AB" [6]