R 所有数据集中最常用的单词
我的数据集如下:R 所有数据集中最常用的单词,r,R,我的数据集如下: interests<-data.frame(interests=c("A mentor/teacher,Friendship", "A play partner,Princess by day slut by night,Friendship,A sub,A slave", "A relationship,A play partner,Friendship,Events",
interests<-data.frame(interests=c("A mentor/teacher,Friendship",
"A play partner,Princess by day slut by night,Friendship,A sub,A slave",
"A relationship,A play partner,Friendship,Events",
"Not Defined"))
interests
<fctr>
A mentor/teacher,Friendship
A play partner,Princess by day slut by night,Friendship,A sub,A slave
A relationship,A play partner,Friendship,Events
Not Defined
兴趣
或者,因为你似乎认为“游戏伙伴”一个词:
table(unlist(strsplit(as.character(interests$interests), split=",")))
或者,因为你似乎认为“游戏伙伴”一个词:
table(unlist(strsplit(as.character(interests$interests), split=",")))