View source: R/create_stm_input.R
Create and save objects to be used as input to STM functions.
1 2 | create_stm_input(input_dir, output_file, bounds = c(2, Inf),
word_lengths = c(3, 24), split_docs = FALSE)
|
input_dir |
Directory containing text files from which to create STM input. |
output_file |
Full filepath, including filename, at which to save .Rdata file containing STM input objects. |
bounds |
An integer vector of length 2 indicating the lower and upper bounds (inclusive) for the number of documents in which a token must appear to be included in the analysis. |
word_lengths |
An integer vector of length 2 indicating lower and upper bounds (inclusive) for the number of characters a token must have to be included in the analysis. |
split_docs |
Logical indicating whether documents should be split into 3,000 word sections prior to STM analysis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.