search for: elsetargetmy

Displaying 1 result from an estimated 1 matches for "elsetargetmy".

Did you mean: elsetarget
2006 Jan 11
3
Regular expressions
...n I did not find it). Since "ls" with argument pattern essentially uses "grep" (if I am not mistaken), I have an example for "grep" text<-c("somethigMYsomthing elseTARGET another thing","MY somthing TARGET another thing","somethig somthing elseTARGETMY another thing","somethigMTARGETY another thing") grep(pattern="MY&TARGET", x=text) #I would like to get 1 2 3 and not 4 or actually their names using text[grep(pattern="MY&TARGET", x=text)] #of course, the "pattern" in this case is wrong I kno...