determine_topics: determine_topics

Description Usage Arguments Value

View source: R/topics.R

Description

Takes in a dataframe and column and abstracts the use of the topicmodels package by applying an LDA model. Used by other *_topics functions

Usage

1
determine_topics(dataframe, column, num_topics = 2)

Arguments

dataframe

dataframe or tibble of survey responses

column

string variable of free text responses to which the LDA model will be applied

num_topics

integer denoting the number of topics (k) to be specified for the LDA model, defaults to 2

Value

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


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