Skip to content
Prev 171132 / 398506 Next

problem with comparing a part of string with whole string

Hi ,

i just attached one file to this mail which contains one modal of my data
and there i have to search for the rows which contains   "SPECIMENTYP %in%
"ADIPOSE TISSUE""
and the rows which contains     " "PRESERVED"    in  ORGCHARRES
for that i tried with
" r<-subset(rr,SPECIMENTYP %in% "ADIPOSE TISSUE" & grep("IN
DIAMETER",rr$ORGCHARRES),select=c(SPECIMENTYP,ORGCHARRES))"

but i got only the rows having  "ADIPOSE TISSUE"   in  "SPECIMENTYP"

can anyone suggest any of the way for comparision of this type


thanks in advance
On Thu, Feb 19, 2009 at 6:26 PM, Petr PIKAL <petr.pikal at precheza.cz> wrote: