Get specific sentiment lexicons in a tidy format, with one row per word,
in a form that can be joined with a one-word-per-row dataset.
Each of these comes from the included
sentiments data frame,
but this performs the filtering for a specific lexicon, and removes
columns that are not used in that lexicon.
The sentiment lexicon to retrieve; either "afinn", "bing", "nrc", or "loughran"
A tbl_df with a
word column, and either a
lexicon is not "afinn") or a numeric
lexicon is "afinn").
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.