View source: R/cvd_api_functions.R
cvd_area_list | R Documentation |
Returns all areas for a given time period and parent area or system level. Only areas which have data for the specified time period will be returned.
cvd_area_list(time_period_id = 1, parent_area_id, system_level_id)
time_period_id |
integer - specifies time period for which to return areas (compulsory) |
parent_area_id |
integer - specifies the area of which children will be returned (optional) |
system_level_id |
integer - specifies which system levels to return areas for (optional) |
Either parent area or system level must be specified: If parent area is specified, all children areas of that parent will be returned. If system level is specified, all areas within that system level will be returned.
Parent area takes precedence over system level - if parent area is specified, system level is ignored.
CVD Prevent API documentation: Area lists
Tibble of area details
cvd_area_details()
, cvd_area_unassigned()
, cvd_area_search()
, cvd_area_nested_subsystems()
, cvd_area_flat_subsystems()
# list four PCNs with data available at time period 17
cvd_area_list(time_period_id = 17, system_level_id = 4) |>
dplyr::select(SystemLevelName, AreaID, AreaCode, AreaName) |>
dplyr::slice_head(n = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.