summarise_topics: summarise_topics

Description Usage Arguments Value See Also

View source: R/topics.R

Description

Function to return to top unique words for each topic by fitting an LDA model

Usage

1
2
summarise_topics(dataframe, column, num_words = 3, exclude = "",
  num_topics = 2)

Arguments

dataframe

dataframe or tibble of survey responses

column

string variable of free text responses which has a specified LDA model

num_words

integer denoting the number of top words to return for each topic

exclude

character vector of words to exclude from topic modelling

num_topics

integer denoting the number of distinct topics to assume are present. Defaults to 2

Value

a dataframe, where each column is a topic and contains the most common words in those topics

See Also

Other topics: classify_topics


chrisbrownlie/surveyr documentation built on Dec. 1, 2019, 12:34 a.m.