R/select.R
select_loadings.Rd
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.
# S3 method for poisson_nmf_fit
select(.data, loadings, ...)
# S3 method for multinom_topic_model_fit
select(.data, loadings, ...)
select_loadings(.data, loadings, ...)
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
.
Indices (names or numbers) giving data rows to keep. If not specified, all rows are kept.
Other arguments passed to the generic select function.
A Poisson NMF or multinomial topic model fit containing the selected data rows only.