Description Usage Note Author(s) Examples
stringposition help find the position of a specified string pattern
1 2 3 | stringposition(pattern,
x,
unlist=T)
|
If there is no specified pattern in a string,NA would be returned.
Weibin Huang<654751191@qq.com>
1 2 3 4 5 6 7 | stringposition(c("a","-"),
"abc-bace-a")#unlist=T
stringposition(c("a","-"),
"abc-bace-a",
unlist = F)#unlist=F
stringposition("-", "abc")#
stringposition(c("d","-"), "abc-bace-a")#-中的位置
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.