views:

84

answers:

3

Hi all,

Close to finishing up my first project entirely in R, but I am stuck. I don't really have a good grasp of regex, but usually can accomplish my tasks with substring, instring, len, or comparable functions.

I have two questions. Where can I find a list of string functions in R, and 2nd, does R have an instring type function?

Many thanks in advance!

Brock

+1  A: 

This might point you in the right direction:

help.search(keyword = "character", package = "base")
ncray
+4  A: 

I think this reference anwswers both questions.

HTH!

belisarius
BTW ... the worst about R is the name ... Googling anything is a s[%@%]
belisarius
@belisarius So you should check rseek.org
mbq
@mbq Thanks! I tried it a few times in the past, but got lots of unrelated links. May be I should try again.
belisarius
+3  A: 

You might like working with the stringr package, which gives a consistent interface to the R string functions. It has functions like str_detect() and str_locate() which may address your instring needs.

Harlan