Description Usage Arguments Details Value Author(s) See Also Examples
grep a string whether in another string or vector, the string are split by space.
1 | grep_split(keyword, x)
|
keyword |
a character string, separator "|" is permitted. |
x |
a character vector where matches are sought. |
Extention for grep functin.
The function return the numbers vector which contain the keyword.
Zongfu Cao (caozongfu@nrifp.org.cn)
1 2 3 | x <- c("you and he and I", "you", "Tom", "I", "you and I", "he and I")
grep_split("you and I | Tom", x)
#[1] 1 5 3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.