top_Sentiments {texter}R Documentation

Get the top 10 negative and positive words

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

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

top_Sentiments(doge$text, plot = TRUE)


[Package texter version 0.1.9 Index]