uniquerows: Unique rows, in memory or straight off a delimited file

View source: R/primitives.R

uniquerowsR Documentation

Unique rows, in memory or straight off a delimited file

Description

Return unique rows, optionally considering only selected columns. With a single file path as data, it is a fused one-pass scan that returns the distinct combinations of cols without ever materialising the file as R vectors (see aggregate()'s file mode).

Usage

uniquerows(data, cols = NULL, .keep_all = FALSE, ...)

Arguments

data

A data.frame, or a single path to a delimited text file.

cols

Optional character vector of columns used to determine uniqueness. Required when data is a file path.

.keep_all

Keep all columns when cols is supplied.

...

For the file form, passed to the file reader (where, delim, n_threads, ...).

Value

A basetable of the unique rows.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.