View source: R/text_analysis.R
split_dfm | R Documentation |
Divide a document feature matrix into training and testing sets based on number of training items
split_dfm(dfm, n_train)
dfm |
The document feature matrix to split. |
n_train |
The number of documents in the training set. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.