View source: R/list_stratification_levels.R
list_stratification_levels | R Documentation |
Replaced by new more powerful function, list_StratificationLevels().
list_stratification_levels(
measure = NA,
geo_type = NA,
geo_type_ID = NA,
format = "ID",
smoothing = 0
)
measure |
Specifies the measure of interest as an ID, name, or shortName. IDs should be unquoted; name and shortName entries should be quoted strings. |
geo_type |
An optional argument in which you can specify a geographic type as a quoted string (e.g., "State", "County"). The "geographicType" column in the list_geography_types() output contains a list of geo_types associated with each measure. |
geo_type_ID |
An optional argument in which you can specify a geographic type ID as an unquoted numeric value (e.g., 1, 2). The "geographicTypeId" column in the list_geography_types() output contains a list of geo_types associated with each measure. |
format |
Indicates whether the measure argument contains entries formatted as an ID, name, or shortName as a quoted string (e.g., "name", "shortName"). The default is ID. |
smoothing |
Specifies whether to return stratification levels for geographically smoothed versions of a measure (1) or not (0). The default value is 0 because smoothing is not available for most measures. Requesting smoothed data when it is not available will produce an error. |
The output of this function is a list with a separate element for each geography type available for the specified measure (e.g., state, county). Each row in the data frames contained as elements in the list shows a stratification available for the measure.
## Not run:
list_stratification_levels(measure=370,format="ID")
list_stratification_levels(measure=c(370,423,707),format="ID")
list_stratification_levels(measure=c("Number of summertime (May-Sep) heat-related deaths, by year",
"Number of extreme heat days","Number of months of drought per year"),
format="shortName")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.