Generates emotion ratios for each row in a dataframe of text.
Usage
calculate_ratios(df, text_var = "Message")
Arguments
- df
A dataframe where each row is a separate post.
- text_var
The variable containing the text you wish to explore.
Value
Adds word counts and emotion ratios to the original dataframe.