pull_essence: Pulls Essence Data for 3 metrics: CLI, ILI, Total ED Visits

Description Usage Arguments Value Examples

View source: R/data_pull_fcns.R

Description

Pulls Essence Data for 3 metrics: CLI, ILI, Total ED Visits

Usage

1
2
3
4
5
6
pull_essence(
  api_url,
  start_date,
  end_date = NULL,
  metric = c("cli", "ili", "total_ed")
)

Arguments

api_url

character string matching Essence API format

start_date

Start date of the time series that you wish to analyze. It should be something coercible to Date format with as.Date.

end_date

(default = NULL) If specified it is the end date of the time series that you wish to analyze. It should be something coercible to Date format with as.Date. If you want all data leave it blank.

metric

one of "cli", "ili", "total_ed" depending on which metrics you wish to calculate.

Value

a data.frame

Examples

1
2
3
4
## Not run: 
  #write me an example please

## End(Not run)

lcrayton18/State_package_burdenandtrajectory documentation built on July 19, 2020, 12:37 a.m.