R: TermDocumentMatrix - Error while creating
问题 I am trying to get twitter data and create a wordcloud but my code is giving error while creating TermDocumentMatrix. My code is as below twitter_search_data <- searchTwitter(searchString = text_to_search ,n = 500) twitter_search_text <- sapply(twitter_search_data ,function(x) x$getText()) twitter_search_corpus <- Corpus(VectorSource(twitter_search_text)) twitter_search_corpus <- tm_map(twitter_search_corpus, stripWhitespace, lazy = TRUE) twitter_search_corpus <- tm_map(twitter_search_corpus,