Close to finishing up my first pro开发者_高级运维ject 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
I think this reference anwswers both questions.
HTH!
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.
This might point you in the right direction:
help.search(keyword = "character", package = "base")
精彩评论