Learn R Programming

sentometrics (version 0.2)

lexicons: Built-in lexicons

Description

A list containing all built-in lexicons as a data.table with two columns: a x column with the words, and a y column with the polarities. The list element names incorporate consecutively the name and language, and "_tr" as suffix if the lexicon is translated. The lexicons are in the format required for further sentiment analysis. The built-in lexicons are the following:

  • FEEL_eng_tr (FEEL: French Expanded Emotion Lexicon)

  • FEEL_fr

  • FEEL_nl_tr

  • GI_eng (GI: General Inquirer, i.e. Harvard IV-4 combined with Laswell)

  • GI_fr_tr

  • GI_nl_tr

  • HENRY_eng (HENRY: Henry)

  • HENRY_fr_tr

  • HENRY_nl_tr

  • LM_eng (LM: Loughran and McDonald)

  • LM_fr_tr

  • LM_nl_tr

Usage

data("lexicons")

Arguments

Format

A list with all built-in lexicons, appropriately named as "NAME_language(_tr)" .

Examples

Run this code
# NOT RUN {
lexicons[c("FEEL_eng_tr", "LM_eng")]
# }

Run the code above in your browser using DataLab