Description Usage Arguments Value Examples
Function to create tmCorpus
1 |
x |
source, for package stylo it supposed to be directory with Corpus files |
... |
other arguments dependent on package that we use |
package |
package of reading the data could be tm or stylo |
returns tmCorpus object
1 2 3 4 5 6 7 8 | corp <- tmCorpus(c("This is corp", "Document 2"))
corp <- tmCorpus(list("This is corp", "Document 2"))
corp <- tmCorpus(VectorSource(c("This is corp", "Document 2")), package = "tm")
## Not run:
corp <- tmCorpus(DirSource("directory"), package = "tm")
corp <- tmCorpus("directory", package = "stylo")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.