eval_dictionaries: Compute scores based on dictionaries' word counts

Description Usage Arguments Value Author(s) See Also

View source: R/eval_dictionaries.R

Description

Count the occurrences of words associated with a dictionary.

Usage

1
eval_dictionaries(bow, dictionary, score = "total")

Arguments

bow

Tibble. Bag of words for one document with at least two variables: "term" and "count".

dictionary

Tibble. Categorizations of words with at least three variables: "term", "category", and "value".

score

Character string. Whether the function should return a "total" or a "percentage".

Value

A tibble with documents as rows, categories as variables, ad the required summary in cells

Author(s)

Nicolas Mangin

See Also

create_bow


NicolasJBM/lexR documentation built on Feb. 4, 2021, 6:43 p.m.