str_split(strs," ")
#截取部分字符串
str_sub(str,7,11)
#判断字符串是否有某一字符
str_detect(strs,"foods")
#判断字符串开头是否有某一字符...str_starts(strs,"Joey")
#判断字符串结尾是否有某一字符
str_ends(strs,"\\?")...)),5)
#去除重复的Species列内容
head(arrange(iris,Species,.keep_all = T),5)
#筛选Sepal.Width大于3的行
head(filter(iris...,Sepal.Width>3),5)
#筛选出Sepal.Length和Sepal.Width列
head(select(iris,Sepal.Length,Sepal.Width),5)
#管道符可以将上一函数的输出...,传递至下一个函数的第一个参数
iris
filter(Sepal.Width>3) %>%
select(Sepal.Length,Sepal.Width) %>%
arrange(Sepal.Length