On Thu, May 5, 2011 at 4:55 PM, Worik R <wor...@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@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.