Apply compute_logratios_facet_wide_at()
to
data
in pairs of facet
values, then do post-processing for sentiments.
compute_sentratios_facet_by2_at(data = NULL, func = compute_logratios_facet_wide_at, token = NULL, facet = NULL, xy_grid, xy_nms, cnt_min = 10, lexicon = "bing", ...) compute_sentratios_facet_by2(..., token, facet)
data | data.frame. Data to apply a function over. |
---|---|
func | function. Wrapped by |
token | bare for NSE; character for SE. Name of column in |
facet | character. Name of column in |
xy_grid | data.frame. Output from |
xy_nms | character (vector). Values to use to create a 'grid' of all combinations of values. |
cnt_min | numeric. If not null, serves as a filter for which to compute log ratios. |
lexicon | character. Specifies lexicon to use. Must be a lexicon available in the |
... | dots. Adddition parameters to pass to |
data.frame.
Calls wrapper_func
internally. This function is very
similar to compute_sentratios_facet_by2_at()
, but with some post-processing.
Note that ...
are passed to get_sents()
here (instead of to
compute_logratios_facet_wide_at()
, so token
and cnt_min
must
be checked for NULL explicilty.