Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 csv 文件的内容读入数据帧源,但是当我尝试创建语料库时,它总是说
**argument "x" is missing, with no default**
代码是
corpus1 <- Corpus(object=ds, readerControl=list(reader=readTabular(mapping=m),language="en"))
ds是一个数据框源 &m是一个列表,它将内容、主题等分配给数据框的字段。
ds
m
快速查看帮助?Corpus表明此函数有两个参数:
?Corpus
x
readerControl
由于您提供了一个参数object,但没有x,您的代码应该如下所示:
object
corpus1 <- Corpus(x=ds, readerControl=list(...)