View source: R/transformIntoCorpus.R
transformIntoCorpus | R Documentation |
Takes the given input of characters and transforms it into a Corpus
. The input is checked to match the expected class and format.
transformIntoCorpus(x)
x |
A list, data.frame or vector consisting of characters |
The generated Corpus
Factors are automatically casted into characters but with printing a warning
preprocessCorpus
for further preprocessing, analyzeSentiment
for subsequent sentiment analysis
transformIntoCorpus(c("Document 1", "Document 2", "Document 3"))
transformIntoCorpus(list("Document 1", "Document 2", "Document 3"))
transformIntoCorpus(data.frame("Document 1", "Document 2", "Document 3"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.