sentiment_df: Sentiment df Function

Description Usage Arguments Value

View source: R/remoodji.R

Description

Generates a sentiment analysis summary dataframe of the input text. The summary dataframe would include the sentiment type, sentiment words, number of sentiment words, and highest sentiment percentage.

Usage

1
sentiment_df(text, sentiment_input = "all")

Arguments

text

string: the input text for sentiment analysis

sentiment_input

string (optional): the sentiment that the analysis focuses on, could be happy, angry, or sad etc. Defaults to "all".

Value

dataframe: a data frame that contains the summary of sentiment analysis


UBC-MDS/remoodji documentation built on March 30, 2021, 12:02 p.m.