to_arrow | R Documentation |
This can be used in pipelines that pass data back and forth between Arrow and other processes (like DuckDB).
to_arrow(.data)
.data |
the object to be converted |
A RecordBatchReader
.
library(dplyr) ds <- InMemoryDataset$create(mtcars) ds %>% filter(mpg < 30) %>% to_duckdb() %>% group_by(cyl) %>% summarize(mean_mpg = mean(mpg, na.rm = TRUE)) %>% to_arrow() %>% collect()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.