Description Usage Arguments Value
Function to take a tibble with a text column of Yelp reviews and return an augmented tibble with each review's mean AFINN score, number of "buts/nots", and word-length quintile.
1 | prepare_yelp(data, var, qtiles = c(1, 39, 65, 102, 169, 1033))
|
data |
A tibble containing a column of plaintext Yelp reviews. |
var |
A column containing plaintext Yelp reviews. |
qtiles |
An optional vector of 5 integers with the left-hand boundaries of word-length quintiles. The fifth quintile's upper bound is assumed to be infinite. |
The input data plus columns for mean AFINN score, number of "buts/nots", and word-length quintile.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.