powered by
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)
A corpus.
A character listing the directory to be written into.
Either NULL or a character vector. In case no filenames are provided, filenames are automatically generated by using the documents' identifiers in x.
NULL
x
The plain text representation of the corpus is obtained by calling as.character on each document.
as.character
data("crude") if (FALSE) writeCorpus(crude, path = ".", filenames = paste(seq_along(crude), ".txt", sep = ""))
Run the code above in your browser using DataLab