get_baydeltalive_data: Download Bay Delta Live Data

Description Usage Arguments Value Examples

View source: R/download_tools.R

Description

Download data from Bay Delta Live.

Usage

1
2
3
4
5
6
7
8
get_baydeltalive_data(
  asset_id,
  path_suffix,
  fnames,
  parse_fun,
  ...,
  verbose = TRUE
)

Arguments

asset_id

The asset identifier.

path_suffix

Path suffix(es), specifying subfolders of the asset to search

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 readr::read_csv().

...

Additional arguments to pass to parse_fun.

verbose

If TRUE, display descriptive messages.

Value

a named list of dataframes.

Examples

1
2
3
4
5
6
## Not run: 
get_baydeltalive_data("00c870b6fdc0e30d0f92d719984cfb44",
  "application/vnd.ms-excel", "Field_Data_[0-9]{4}-[0-9]{4}x*",
  parse_remote_excel, guess_max = 100000L)

## End(Not run)

InteragencyEcologicalProgram/smonitr documentation built on Nov. 9, 2020, 7:01 a.m.