R语言拆分字符串

R语言拆分字符串
aaa<-"aa;bb;cc"
ccc<-strsplit(aaa,split=";")

bbb<- unlist(strsplit(aaa,split=";")) ; bbb
bbb[2]
str(bbb)
length(bbb)

原文地址:https://www.cnblogs.com/emanlee/p/5993962.html