search for: somethigmtargety

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

2006 Jan 11
3
Regular expressions
...uot; 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 know I can do text[grep(pattern="MY&quot...