dplyr_rows: Verbs that operate on rows

arrangeR Documentation

Verbs that operate on rows

Description

These functions operate on the rows (documents) of quanteda objects, subsetting, reordering, or selecting distinct documents based on document variables.

Arguments

.data

a quanteda corpus object

...

additional arguments passed to methods

Details

arrange() orders documents by values of document variables. See dplyr::arrange() for more details.

distinct() subsets documents to keep only unique/distinct rows based on document variable values. See dplyr::distinct() for more details.

filter() subsets documents that satisfy specified conditions on document variables. See dplyr::filter() for more details.

slice() and its variants (slice_head(), slice_tail(), slice_min(), slice_max(), slice_sample()) select documents by their (integer) positions. See dplyr::slice() for more details.

Value

A corpus, subsetted or reordered according to the operation.


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