Convenience function to read bottle sample data from the CalCOFI database.

cc_read_bottle(version = "latest", collect = TRUE, ...)

Arguments

version

Database version (default: "latest")

collect

If TRUE, collect results into memory. If FALSE, return lazy dbplyr table (default: TRUE)

...

Additional filter expressions passed to dplyr::filter()

Value

Tibble of bottle data (if collect=TRUE) or lazy table

Examples

if (FALSE) { # \dontrun{
# get all bottle data
bottles <- cc_read_bottle()

# filter by depth
shallow <- cc_read_bottle(depth_m < 100)
} # }