Skip to content

Using duckplyr

duckdb_tibble() as_duckdb_tibble() is_duckdb_tibble()
duckplyr data frames
read_parquet_duckdb() read_csv_duckdb() read_json_duckdb() read_file_duckdb()
Read Parquet, CSV, and other files using DuckDB
read_sql_duckdb() experimental
Return SQL query as duckdb_tibble

dplyr verbs

Computing and materializing data

compute(<duckplyr_df>)
Compute results
compute_parquet() compute_csv()
Compute results to a file
collect(<duckplyr_df>)
Force conversion to a data frame
pull(<duckplyr_df>)
Extract a single column
explain(<duckplyr_df>)
Explain details of a tbl

Verbs that affect rows

arrange(<duckplyr_df>)
Order rows using column values
distinct(<duckplyr_df>)
Keep distinct/unique rows
filter(<duckplyr_df>)
Keep rows that match a condition
head(<duckplyr_df>)
Return the First Parts of an Object

Verbs that affect columns

mutate(<duckplyr_df>)
Create, modify, and delete columns
transmute(<duckplyr_df>)
Create, modify, and delete columns
select(<duckplyr_df>)
Keep or drop columns using their names and types
rename(<duckplyr_df>)
Rename columns
relocate(<duckplyr_df>)
Change column order

Grouping and summarising verbs

count(<duckplyr_df>)
Count the observations in each group
summarise(<duckplyr_df>)
Summarise each group down to one row

Verbs that work with multiple tables

Unsupported verbs

unsupported
Verbs not implemented in duckplyr

Using duckplyr for all data frames

methods_overwrite() methods_restore()
Forward all dplyr methods to duckplyr

Datasets

flights_df()
Flight data

Configuration, telemetry, and internals

config
Configuration options
fallback_sitrep() fallback_config() fallback_review() fallback_upload() fallback_purge()
Fallback to dplyr
stats_show()
Show stats
last_rel()
Retrieve details about the most recent computation
db_exec()
Execute a statement for the default connection

Relational operations and expressions