Learn R Programming

vectra (version 0.6.2)

collect: Execute a lazy query and return a data.frame

Description

Pulls all batches from the execution plan and materializes the result as an R data.frame.

Usage

collect(x, ...)

Value

A data.frame with the query results.

Arguments

x

A vectra_node object.

...

Ignored.

Examples

Run this code
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
result <- tbl(f) |> collect()
head(result)
unlink(f)

Run the code above in your browser using DataLab