mdb <- mfdb(tempfile(fileext = '.duckdb'))
# Include as many columns as possible
mfdb_dplyr_sample(mdb)
# Only include 'data_source' and 'species' columns, as well as measurements
mfdb_dplyr_sample(mdb, c('data_source', 'species'))
# Query the sampling_type table
mfdb_dplyr_table(mdb, 'sampling_type')
mfdb_disconnect(mdb)
Run the code above in your browser using DataLab