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

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

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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive