Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

findTopic

Find topics that contain user specified words.


Description

Find topics that contain user specified words.

Usage

findTopic(
  x,
  list,
  n = 20,
  type = c("prob", "frex", "lift", "score"),
  verbose = TRUE
)

Arguments

x

The STM model object to be searched. May also be the output from sageLabels.

list

Character vector containing words to be searched.

n

Number of words to consider

type

Type of words to be searched.

verbose

A logical indicating whether details should be printed to the screen.

See Also

Examples

lab <- sageLabels(gadarianFit, n=5)
findTopic(lab, c("poor", "immigr", "peopl"))
findTopic(gadarianFit, c("poor", "immigr", "peopl"))

stm

Estimation of the Structural Topic Model

v1.3.6
MIT + file LICENSE
Authors
Margaret Roberts [aut], Brandon Stewart [aut, cre], Dustin Tingley [aut], Kenneth Benoit [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.