Re: [R] How to find data that includes certain values

2011-01-21 Thread Den
Hello Consider following dataframe named df var1var2var3 3771354 565 654654 963 6677 775 147 657754 df <- read.table('clipboard', header = TRUE) df #find indexes with '77' in var 1 myIndexes <- grep( glob2rx("*77*"), df$var1) myIndexes #find actual values of seach ab

Re: [R] How to find data that includes certain values

2011-01-21 Thread Henrique Dallazuanna
Take a look on grep function. On Fri, Jan 21, 2011 at 3:26 PM, poppinkid wrote: > > I am trying to return an index for a data set by searching using filenames. > > The name may be ANG_AUT.N.0734C70411A-1_1sA_0734C70411A.fasta, but i'd just > like to search it using the term "0734C70411" as the

Re: [R] How to find data that includes certain values

2011-01-21 Thread jim holtman
There are several pattern matching functions that will solve your problem: grep regexpr do RSiteSearch("pattern match") On Fri, Jan 21, 2011 at 12:26 PM, poppinkid wrote: > > I am trying to return an index for a data set by searching using filenames. > > The name may be ANG_AUT.N.0734C70411A-1_

[R] How to find data that includes certain values

2011-01-21 Thread poppinkid
I am trying to return an index for a data set by searching using filenames. The name may be ANG_AUT.N.0734C70411A-1_1sA_0734C70411A.fasta, but i'd just like to search it using the term "0734C70411" as the file may be 0734C70411A or 0734C70411C or 0734C70411D Any way to do this other than doin