create_tdm: Create a term-document matrix from preprocessed text
Description
This function creates a term-document matrix from preprocessed text data.
Usage
create_tdm(preprocessed_data, min_df = 2, max_df = 0.9)
Value
A term-document matrix.
Arguments
- 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.