top_Sentiments: Get the top 10 negative and positive words

Description Usage Arguments Value Examples

View source: R/top_Sentiments.R

Description

This function returns the top 10 positive and negative words expressed in a text. By defaults a data frame of words classified as positive or negative based on weights.

Usage

1
top_Sentiments(word_vec, plot)

Arguments

word_vec

This is the corpus you want to extract the sentiments from

plot

(TRUE/FALSE) TRUE means you want to return a plot which you can further customize. FALSE means a dataframe will be returned

Value

a data frame object if plot is FALSE. a ggplot object if plot = TRUE

Examples

1

texter documentation built on Sept. 20, 2021, 5:08 p.m.