RTextTools を初めて使用しています。create_matrix のコードは次のとおりです
library(RTextTools)
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.")
doc_matrix <- create_matrix(texts, language="english", removeNumbers=FALSE, stemWords=TRUE, removeSparseTerms=.2)
次のエラーが発生します。
Error in `[.simple_triplet_matrix`(matrix, , sort(colnames(matrix))) :
Invalid subscript type: NULL.
In addition: Warning messages:
1: In is.na(x) : is.na() applied to non-(list or vector) of type 'NULL'
2: In is.na(j) : is.na() applied to non-(list or vector) of type 'NULL'
他の誰かがこのエラーを投稿しているのをまだ見たことがありません。
ピーター