generate wordcloud
generate_wordcloud.Rd
Generate the word cloud of the most common positive and negative words from a given survey in the form of a data frame and create a word cloud.
Arguments
- df,
DataFrame containing the survey comments
- col,
name of the column that contains the reviews
Value
List: A list of three images in the following order: postive, neutral, negative A word cloud instance that can be later plotted or saved as an image
Examples
df = data.frame(text = c("I love cats","I love dogs"))
imgs <- generate_wordcloud(df, "text")