dplyr_groups: Verbs that operate on groups of rows

add_countR Documentation

Verbs that operate on groups of rows

Description

These functions operate on groups of rows (documents) of quanteda objects, typically counting or summarising documents by group.

Arguments

x

a quanteda corpus object

...

additional arguments passed to methods

Details

add_count() and add_tally() add a document variable containing the count of observations in each group. See dplyr::add_count() for more details.

Value

A corpus with an additional document variable containing counts.


quanteda.tidy documentation built on Dec. 17, 2025, 5:09 p.m.