Re: [R] Looking for equivalent for "strstr"

From: Gabor Grothendieck <>
Date: Thu, 05 May 2011 17:58:22 -0400

On Thu, May 5, 2011 at 4:55 PM, Worik R <> 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: = "character", package = "base")

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

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 05 May 2011 - 22:11:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 22:40:06 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive