powered by
Find topics that contain user specified words.
findTopic(x, list, n = 20, type = c("prob", "frex", "lift", "score"), verbose = TRUE)
The STM model object to be searched. May also be the output from sageLabels.
Character vector containing words to be searched.
Number of words to consider
Type of words to be searched.
A logical indicating whether details should be printed to the screen.
findThoughts
# NOT RUN { lab <- sageLabels(gadarianFit, n=5) findTopic(lab, c("poor", "immigr", "peopl")) findTopic(gadarianFit, c("poor", "immigr", "peopl")) # }
Run the code above in your browser using DataLab