| bind_rows | R Documentation |
Bind rows or columns from multiple vectra tables
bind_rows(..., .id = NULL)
bind_cols(...)
... |
|
.id |
Optional column name for a source identifier. |
When all inputs are vectra_node objects with identical column names and
types and no .id is requested, bind_rows creates a streaming
ConcatNode that iterates children sequentially without materializing.
Otherwise, inputs are collected and combined in R. Missing columns are filled with NA.
bind_cols requires the same number of rows in each input.
A vectra_node (streaming) when all inputs are vectra_node with
identical schemas and .id is NULL. Otherwise a data.frame.
f1 <- tempfile(fileext = ".vtr")
f2 <- tempfile(fileext = ".vtr")
write_vtr(data.frame(x = 1:3, y = 4:6), f1)
write_vtr(data.frame(x = 7:9, y = 10:12), f2)
bind_rows(tbl(f1), tbl(f2)) |> collect()
bind_cols(tbl(f1), tbl(f2))
unlink(c(f1, f2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.