writeCorpus | R Documentation |
Write a plain text representation of a corpus to multiple files on disk corresponding to the individual documents in the corpus.
writeCorpus(x, path = ".", filenames = NULL)
x |
A corpus. |
path |
A character listing the directory to be written into. |
filenames |
Either |
The plain text representation of the corpus is obtained by calling
as.character
on each document.
data("crude")
## Not run: writeCorpus(crude, path = ".",
filenames = paste(seq_along(crude), ".txt", sep = ""))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.