View source: R/text_analysis_patrick.R
create_sets | R Documentation |
Create training and test set from a corpus
create_sets(the_corpus, size, seed)
the_corpus |
The text corpus to split |
size |
Size of the training set (must be smaller than number of documents in the corpus) |
seed |
Seed for randomization to ensure replicability |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.