| cast_api_queries | R Documentation |
epidata_snapshot fetches a snapshot of signals as they appeared at a
specific date (or the latest available if snapshot_date is omitted).
epidata_archive fetches the full version history of signals across all
available issues.
epidata is a wrapper that routes to one of the above based
on which versioning argument is supplied.
epidata_snapshot(
source,
signals,
geo_type,
geo_values = "*",
reference_time = "*",
time_values = lifecycle::deprecated(),
...,
fill_method = NULL,
snapshot_date = NULL,
as_of = lifecycle::deprecated(),
fetch_args = fetch_args_list()
)
epidata_archive(
source,
signals,
geo_type,
geo_values = "*",
reference_time = "*",
time_values = lifecycle::deprecated(),
...,
fill_method = NULL,
report_time = "*",
issues = lifecycle::deprecated(),
fetch_args = fetch_args_list()
)
epidata(
source,
signals,
geo_type,
geo_values = "*",
reference_time = "*",
time_values = lifecycle::deprecated(),
...,
fill_method = NULL,
snapshot_date = NULL,
as_of = lifecycle::deprecated(),
report_time = NULL,
issues = lifecycle::deprecated(),
fetch_args = fetch_args_list()
)
source |
string. The data source to query (e.g., |
signals |
character vector. One or more signals to query for the given
source. Use |
geo_type |
string. The geography type to query (e.g., |
geo_values |
character. The geographies to return. Defaults to all ("*") geographies within requested geographic resolution (see: https://cmu-delphi.github.io/delphi-epidata/api/covidcast_geography.html.). |
reference_time |
|
time_values |
|
... |
not used for values, forces later arguments to bind by name |
fill_method |
string. Optional filter to an imputation method.
The API provides alternatives of the same signal differing in how
nulls were handled during geographic aggregation: |
snapshot_date |
Date or |
as_of |
|
fetch_args |
|
report_time |
Date, string, or |
issues |
tibble::tibble
epidata supports two mutually exclusive versioning arguments. Pass
snapshot_date to retrieve data as it appeared on a specific date, or
report_time to query the archive by when data was reported. If neither is
supplied, epidata returns the latest available snapshot.
For example queries showing how to discover signals and build calls,
see vignette("signal-discovery", package = "epidatr").
epidata_meta(), epirange()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.