R语言拆分字符串

R语言拆分字符串

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

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

05-01 06:01