This can be used in pipelines that pass data back and forth between Arrow and other processes (like DuckDB).
to_arrow(.data, as_arrow_query = TRUE)
the object to be converted
should the returned object be wrapped as an
arrow_dplyr_query
? (logical, default: TRUE
)
a RecordBatchReader
object, wrapped as an arrow dplyr query which
can be used in dplyr pipelines.