get_redbluff_data: Download Redbluff Data

Description Usage Arguments Value Examples

View source: R/download_tools.R

Description

Download Redbluff data from cbr.washington.edu.

Usage

1
2
3
4
5
6
7
get_redbluff_data(
  report_year,
  start_year = 2004,
  parse_fun,
  ...,
  verbose = TRUE
)

Arguments

report_year

The report year.

start_year

The initial year to retrieve data for. Default is 2004.

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 list of dataframes, each element corresponds to a year the sequence start_year:report_year. The list also includes an attribute "Notes" of same length and order containing the notes section extracted each report file.

Examples

1
2
3
4
## Not run: 
get_redbluff_data(2018, 2016, na = "--")

## End(Not run)

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