Usage
pvt_cdc(auth, locations, epiweeks = "*", fetch_args = fetch_args_list())Arguments
- auth
string. Your restricted access key (not the same as API key).
- locations
character. List of locations to fetch.
- epiweeks
timeset. Epiweeks to fetch. Supportsepirange()and defaults to all ("*") dates. Format asepirange(startweek, endweek), where startweek and endweek are of the form YYYYWW (string or numeric).- fetch_args
fetch_args. Additional arguments to pass tofetch(). Seefetch_args_list()for details.
Examples
if (FALSE) { # curl::has_internet() && Sys.getenv("SECRET_API_AUTH_CDC") != ""
pvt_cdc(
auth = Sys.getenv("SECRET_API_AUTH_CDC"),
locations = "fl,ca",
epirange(201501, 201601)
)
}