print.TS_on_LDA: Print a set of Time Series models fit to LDAs

Description Usage Arguments Value Examples

View source: R/TS_on_LDA.R

Description

Convenience function to print only the names of a TS_on_LDA-class object generated by TS_on_LDA.

Usage

1
2
## S3 method for class 'TS_on_LDA'
print(x, ...)

Arguments

x

Class TS_on_LDA object to be printed.

...

Not used, simply included to maintain method compatibility.

Value

character vector of the names of x's models.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  data(rodents)
  document_term_table <- rodents$document_term_table
  document_covariate_table <- rodents$document_covariate_table
  LDAs <- LDA_set(document_term_table, topics = 2:3, nseeds = 2)
  LDA_models <- select_LDA(LDAs)
  weights <- document_weights(document_term_table)
  formulas <- c(~ 1, ~ newmoon)
  mods <- TS_on_LDA(LDA_models, document_covariate_table, formulas,
                    nchangepoints = 0:1, timename = "newmoon", weights)
  print(mods)

weecology/LDATS documentation built on March 28, 2020, 11:20 a.m.