print_models: Print a list of models to a multi-page pdf file.

Description Usage Arguments

View source: R/print_models.R

Description

Print a list of models to a multi-page pdf file.

Usage

1
2
print_models(stm_models, texts, file = "printed_stm.pdf", title = NULL,
  verbose = TRUE)

Arguments

stm_models

Either a list of stm model objects from selectModels() or the output of manyTopics().

texts

A character vector where each entry contains the text of a document. Must be in the same order as the documents object. NOTE: This is not the documents which are passed to ‘stm’ and come out of ‘prepDocuments’, this is the actual text of the document.

file

either a character string naming a file or a connection open for writing.

title

Title to printed on top of the first page.

verbose

If it should show a progress bar in the terminal.


mikajoh/stmprinter documentation built on Jan. 2, 2020, 2:55 a.m.