collect: Collect a shard table into memory

View source: R/tables.R

collectR Documentation

Collect a shard table into memory

Description

collect() is a convenience alias for as_tibble() for shard table outputs.

Usage

collect(x, ...)

Arguments

x

A shard table handle (shard_row_groups, shard_dataset, or shard_table_handle).

...

Passed to as_tibble().

Value

A data.frame (or tibble if the tibble package is installed).

Examples


s <- schema(x = float64(), y = int32())
tb <- table_buffer(s, nrow = 5L)
table_write(tb, idx_range(1, 5), data.frame(x = rnorm(5), y = 1:5))
handle <- table_finalize(tb)
df <- collect(handle)


shard documentation built on April 3, 2026, 9:08 a.m.