positivity: Positivity (AFINN) Score

Description Usage Arguments

View source: R/text_attributes.R

Description

This function takes in any dataframe with headline and ids variables and returns a new dataframe containing the variable positivity, which is an integer that represents the total AFINN score associated with each headline. Scores of 0 represent neutral headlines, or headlines not containing any words within the AFINN wordbank.

Usage

1

Arguments

ds

dataset


nicholasjhorton/textclassificationexamples documentation built on July 26, 2020, 12:42 p.m.