View source: R/list_TemporalItems.R
list_TemporalItems | R Documentation |
List the temporal items (periods) available for specified measures, geography types, and geographic items.
list_TemporalItems(
measure,
geo_type = NA,
simplified_output = FALSE,
token = NULL
)
measure |
Specifies the measure of interest as an ID or name. IDs should be unquoted; name entries should be quoted strings. It is recommended that only one measure be submitted. |
geo_type |
An optional argument in which you can specify a geographic type as a quoted string (e.g., "State", "County") or a geographic type ID as an unquoted numeric value (e.g., 1, 2). The "geographicType" and "geographicTypeId" columns in the list_geography_types() output contain a list of potential geo_type entries associated with each measure. |
simplified_output |
If TRUE, a simplified output table is returned. If FALSE, the raw output from the Tracking Network Data API is returned. The default is FALSE. |
token |
An optional argument to submit a Tracking API token acquired from trackingsupport(AT)cdc.gov as a quoted string. It is recommended that you save your token using the tracking_api_token() function so that you don't need to enter your token when you run this function. It will be automatically pulled from you .Renviron file. |
This function returns a list with each element containing a data frame corresponding to each combination of the specified measures and geographic types.
## Not run:
temp <- list_TemporalItems(measure = 99)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.