Description Usage Arguments Examples
View source: R/clickbait_functions.R
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.
1 |
ds |
dataset |
1 | articles_positivity <- positivity(articles)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.