View source: R/alternative_models.R
create_tdm | R Documentation |
This function creates a term-document matrix from preprocessed text data.
create_tdm(preprocessed_data, min_df = 2, max_df = 0.9)
preprocessed_data |
A data frame with preprocessed text data. |
min_df |
Minimum document frequency for a term to be included. |
max_df |
Maximum document frequency (as a proportion) for a term to be included. |
A term-document matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.