专题一:玩转字符串1.检测字符串长度x 和第...str_sub(x,c(5),c(5))#从第5位开始到第5位结束,用于取单独字符4.字符检测str_detect(x2,"h")str_starts(x2,"T")str_ends(x2,"e")5.字符串替换...x2str_replace(x2,"o","A")#默认只替换第一个str_replace_all(x2,"o","A")6.字符删除xstr_remove(x," ")#默认只删第一个str_remove_all...select(filter(iris,Sepal.Width>3), Sepal.Length,Sepal.Width), Sepal.Length)专题三:条件和循环一