View source: R/lexicon_afinn.R
| lexicon_afinn | R Documentation | 
AFINN is a lexicon of English words rated for valence with an integer between minus five (negative) and plus five (positive). The words have been manually labeled by Finn Årup Nielsen in 2009-2011.
lexicon_afinn(
  dir = NULL,
  delete = FALSE,
  return_path = FALSE,
  clean = FALSE,
  manual_download = FALSE
)
| dir | Character, path to directory where data will be stored. If
 | 
| delete | Logical, set  | 
| return_path | Logical, set  | 
| clean | Logical, set  | 
| manual_download | Logical, set  | 
This dataset is the newest version with 2477 words and phrases.
Citation info:
This dataset was published in Finn Ärup Nielsen (2011), “A new Evaluation of a word list for sentiment analysis in microblogs”, Proceedings of the ESWC2011 Workshop on 'Making Sense of Microposts': Big things come in small packages (2011) 93-98.
article{nielsen11, 
author    = {Finn Äruprup Nielsen}, 
title     = {A new Evaluation of a word list for sentiment analysis in microblogs}, 
journal   = {CoRR}, 
volume    = {abs/1103.2903}, 
year      = {2011}, 
url       = {http://arxiv.org/abs/1103.2903}, 
archivePrefix = {arXiv}, 
eprint    = {1103.2903}, 
biburl    = {https://dblp.org/rec/bib/journals/corr/abs-1103-2903}, 
bibsource = {dblp computer science bibliography, https://dblp.org} 
}
A tibble with 2,477 rows and 2 variables:
An English word
Indicator for sentiment: integer between -5 and +5
Other lexicon: 
lexicon_bing(),
lexicon_loughran(),
lexicon_nrc(),
lexicon_nrc_eil(),
lexicon_nrc_vad()
## Not run: 
lexicon_afinn()
# Custom directory
lexicon_afinn(dir = "data/")
# Deleting dataset
lexicon_afinn(delete = TRUE)
# Returning filepath of data
lexicon_afinn(return_path = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.