warriner: Warriner

Description Usage Arguments Value Examples

View source: R/warriner.R

Description

Fetch norms from Warriner et al (2013) word norms database

Usage

1

Arguments

x

a vector of strings. The strings can either be single words or longer documents.

Value

a dataframe of word or document ratings containing valence, arousal, and dominance for each word of phrase. If the input string is a phrase, the mean for each norm is computed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
warriner(c("WALRUS", "Jerk", "paradise"))
##          valence arousal dominance
## walrus   5.79    3.95    5.23
## jerk     2.43    6.45    4.84
## paradise 7       4.82    7.9

warriner(c("THE WALRUS ATE the seal", "Jerk", "paradise"))
##                           valence arousal dominance
## THE WALRUS ATE the seal   5.395   3.225      5.43
## Jerk                      2.430   6.450      4.84
## paradise                  7.000   4.820      7.90

cookm346/textfeats documentation built on April 24, 2020, 9:50 p.m.