str_detect函数属于tidyverse包中函数, 功能类似于grepl函数。
001、
str1 <- c("xx", "yy", "zz", "xx", "pp", "xx")
str1
grepl("xx", str1)
str_detect("xx", str1)

原创文章,作者:bd101bd101,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/278583.html
str_detect函数属于tidyverse包中函数, 功能类似于grepl函数。
001、
str1 <- c("xx", "yy", "zz", "xx", "pp", "xx")
str1
grepl("xx", str1)
str_detect("xx", str1)

原创文章,作者:bd101bd101,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/278583.html