Skip to contents

Tabulates a set of raw titles, classifies each distinct value, and returns the assignment sorted by frequency – the tool for reviewing the full ~250-value vocabulary and finding the tail that lands in OTHER (or is misclassified) before pinning exceptions with the overrides argument of classify_title_role().

Usage

title_role_coverage(titles, overrides = NULL)

Arguments

titles

Character vector of raw (possibly repeated) titles.

overrides

Passed through to classify_title_role().

Value

A data frame: title (distinct normalized value), n (count), role, ordered by descending n.

Examples

if (FALSE) { # \dontrun{
cov <- title_role_coverage(panel$title.standard)
subset(cov, role == "OTHER")           # the tail to review
aggregate(n ~ role, cov, sum)          # role mass
} # }