get_odp_data.Rd
Download files from an Open Data Portal, assuming it uses the CKAN API.
get_odp_data( portal_url = "https://data.cnra.ca.gov", pkg_id, fnames, parse_fun, ..., verbose = TRUE )
portal_url | The base URL of the portal, e.g.
|
---|---|
pkg_id | The package identifier. |
fnames | A vector of file names in the package to download. Supports regex. |
parse_fun | A function to parse datasets. Default assumes that
all files in fnames can be parsed using |
... | Additional arguments to pass to |
verbose | If |
a named list of dataframes.
if (FALSE) { get_odp_data(pkg_id = "dayflow", "Dayflow Results") }