create_stm_input: Create objects for input to STM functions

Description Usage Arguments

View source: R/create_stm_input.R

Description

Create and save objects to be used as input to STM functions.

Usage

1
2
create_stm_input(input_dir, output_file, bounds = c(2, Inf),
  word_lengths = c(3, 24), split_docs = FALSE)

Arguments

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.


dtburk/gensci.stm documentation built on Nov. 13, 2019, 12:33 a.m.