我有数据集 test_stopword,我想根据向量从数据集中删除一些单词。我怎么能在 R 中做到这一点?
texts <- c("This is the first document.",
"Is this a text?",
"This is the second file.",
"This is the third text.",
"File is not this.")
test_stopword <- as.data.frame(texts)
ordinal_stopwords <- c("first","primary","second","secondary","third")