groups: Grouping variable(s) for various functions

Description Arguments


Groups for aggregation by various functions that take grouping options. Groups can be the name(s) of document variables (as a character vector), or variables whose length or number of rows (if a data.frame) equal the number of documents.



either: a character vector containing the names of document variables to be used for grouping; or a factor or object that can be coerced into a factor equal in length or rows to the number of documents. See groups for details.

quanteda/quanteda documentation built on June 15, 2019, 8:36 a.m.