开发者

Instring Function in R

开发者 https://www.devze.com 2023-01-07 06:46 出处:网络
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 co

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")
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号