ddb_collect: Collect a lazy-read duckdb table

View source: R/ddb.R

ddb_collectR Documentation

Collect a lazy-read duckdb table

Description

Collect a table read with ddb_data(x, collect = FALSE)

Usage

ddb_collect(sql, progress = TRUE, returnobj = c("data.frame", "data.table"))

Arguments

sql

Character: DuckDB SQL query, usually output of ddb_data with collect = FALSE

progress

Logical: If TRUE, show progress bar

returnobj

Character: data.frame or data.table: class of object to return

Value

data.frame or data.table.

Author(s)

EDG

Examples

## Not run: 
# Requires local CSV file; replace with your own path
sql <- ddb_data("/Data/iris.csv", collect = FALSE)
ir <- ddb_collect(sql)

## End(Not run)

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.