get_topic_models: Get the list of topic models from a specified environment

Description Usage Arguments Value Author(s)

View source: R/get_topic_models.R

Description

Easily get the list of topic models from a specific class. This is a handy feature to facilitate the identification of only the objects the user wants to process.

Usage

1
get_topic_models(object_type, pattern, envir = globalenv())

Arguments

object_type

A character specifying the class of objects to extract. Default to 'LDA_VEM' as given by the virtual class [topicmodels::TopicModel-class()].

pattern

an optional regular expression. Only names matching pattern are returned. glob2rx can be used to convert wildcard patterns to regular expressions.

envir

The environment where to search for topic models. Default to [base::globalenv()].

Value

A named list containing the objects of specified class.

Author(s)

Francesco Grossetti francesco.grossetti@unibocconi.it.


contefranz/OpTop documentation built on Feb. 14, 2022, 7:04 p.m.