0

在我的数据集中,我有一列带有井号标签和用逗号分隔的名称(即#xxx、@rrr、...)。我想为每个 has-tag/name 将其拆分为一列。我用了:

library(splitstackshape)
hash <- cSplit(indt = as.data.table(dados), splitCols = dados$hashtags, direction = "wide", sep = ",", drop = FALSE)

并得到错误:

( indt [.data.table, , splitCols, with = FALSE) 中的错误:未找到列:#ForaManoel、@FernandinhaDoRT:、#ForaManoel、#FicaEmilly、@PortalLaRavena:、@emillyaraujoof、#ForaManoel、@opakaique:、#FORAEMILLY、 #foramanoel,#BBB17,#ForaEmilly,#ForaManoel,@oDanielFontes:,#ForaManoel,@HugoGloss:,#F

有什么帮助吗?

谢邀,

里卡多。

4

0 回答 0