Learn R Programming

fastTopics (version 0.6-192)

select.poisson_nmf_fit: Extract or Re-order Data Rows in Poisson NMF or Multinomial Topic Model Fit

Description

This function can be used to extract estimates for a subset of the count data, or to re-order the rows of the loadings matrix.

Usage

# S3 method for poisson_nmf_fit
select(.data, loadings, ...)

# S3 method for multinom_topic_model_fit select(.data, loadings, ...)

select_loadings(.data, loadings, ...)

Value

A Poisson NMF or multinomial topic model fit containing the selected data rows only.

Arguments

.data

Poisson NMF or Multinomial Topic Model fit; that is, an object of class “poisson_nmf_fit” or “multinom_topic_model_fit”, such as an output from fit_poisson_nmf or fit_topic_model.

loadings

Indices (names or numbers) giving data rows to keep. If not specified, all rows are kept.

...

Other arguments passed to the generic select function.