diff --git a/R-packages/covidcast/R/covidcast.R b/R-packages/covidcast/R/covidcast.R index 2186ff88..bc9511ed 100644 --- a/R-packages/covidcast/R/covidcast.R +++ b/R-packages/covidcast/R/covidcast.R @@ -560,6 +560,7 @@ covidcast_signals <- function(data_source, signal, "hhs", "nation" ), + time_type = c("day", "week"), geo_values = "*", as_of = NULL, issues = NULL, lag = NULL) { N <- max(length(data_source), length(signal)) @@ -595,6 +596,7 @@ covidcast_signals <- function(data_source, signal, start_day = start_day[i], end_day = end_day[i], geo_type = geo_type, + time_type = time_type, geo_values = geo_values, as_of = as_of, issues = issues, lag = lag) diff --git a/R-packages/covidcast/man/covidcast_signals.Rd b/R-packages/covidcast/man/covidcast_signals.Rd index 5514ff8a..c64b3edc 100644 --- a/R-packages/covidcast/man/covidcast_signals.Rd +++ b/R-packages/covidcast/man/covidcast_signals.Rd @@ -10,6 +10,7 @@ covidcast_signals( start_day = NULL, end_day = NULL, geo_type = c("county", "hrr", "msa", "dma", "state", "hhs", "nation"), + time_type = c("day", "week"), geo_values = "*", as_of = NULL, issues = NULL, @@ -38,6 +39,10 @@ recent day data is available for this signal.} \url{https://cmu-delphi.github.io/delphi-epidata/api/covidcast_geography.html} for details on which types are available.} +\item{time_type}{The temporal resolution to request this data. Most signals +are available at the "day" resolution (the default); some are only +available at the "week" resolution, representing an MMWR week ("epiweek").} + \item{geo_values}{Which geographies to return. The default, "*", fetches all geographies. To fetch specific geographies, specify their IDs as a vector or list of strings. See