library(dplyr, warn.conflicts = FALSE)
con <- DBI::dbConnect(duckdb(), path = ":memory:")
dbiris <- copy_to(con, iris, overwrite = TRUE)
dbiris %>%
select(Petal.Length, Petal.Width) %>%
filter(Petal.Length > 1.5) %>%
head(5)
DBI::dbDisconnect(con, shutdown = TRUE)
Run the code above in your browser using DataLab