저는 RTextTools를 처음 사용하고 있습니다. 여기 create_matrix 내 코드Rtexttool 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'
나는이 오류가 아직 다른 사람 게시물을 보지 못했다, 그리고 그림은 아주 기본적인 뭔가 거기에있는 I를 실종됐다.
피터