[R] Looking for equivalent for "strstr"

Gabor Grothendieck ggrothendieck at gmail.com
Thu May 5 23:58:22 CEST 2011


On Thu, May 5, 2011 at 4:55 PM, Worik R <worikr at gmail.com> wrote:
> Friends
>
> This is an elementary question.  Is there is a built in R function for
> finding a sub-string in another string?  Like strstr in C.
>
> I can easily roll my own, but if there is a built in that is one less thing
> I can do wrong!
>

Try ?substr and ?substring

The character processing function help pages are listed here:

help.search(keyword = "character", package = "base")


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list