Learn R Programming

quanteda.tidy (version 0.4)

add_count: 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.

Value

A corpus with an additional document variable containing counts.

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.