View source: R/cvd_api_functions.R
cvd_indicator_metric_systemlevel_comparison | R Documentation |
Returns data for the SystemLevel Comparison chart for provided metric, area
and time period. Data
contains the target value as well as an array
SystemLevels
which contains data grouped by system level.
cvd_indicator_metric_systemlevel_comparison(
metric_id = 1,
time_period_id = 1,
area_id = 50
)
metric_id |
integer - the metric to return data for (compulsory) |
time_period_id |
integer - the time period to return data for (compulsory) |
area_id |
integer - the area to return data for (compulsory) |
CVD Prevent API documentation: Indicator metric system level comparison
Tibble of metric performance for the specified area and all other areas in the same system level in the time period
cvd_indicator_list()
, cvd_indicator_metric_list()
, cvd_indicator()
,
cvd_indicator_tags()
, cvd_indicator_details()
, cvd_indicator_sibling()
,
cvd_indicator_child_data()
, cvd_indicator_data()
, cvd_indicator_metric_data()
,
cvd_indicator_raw_data()
, cvd_indicator_nationalarea_metric_data()
,
cvd_indicator_priority_groups()
, cvd_indicator_pathway_group()
, #
cvd_indicator_group()
, cvd_indicator_metric_timeseries()
,
cvd_indicator_person_timeseries()
,
cvd_indicator_metric_area_breakdown()
# return performance for metric 'AF: DOAC & VitK' in people aged 40-59 years
# (metric ID 1270) in time period 17 for Salford South East PCN (area ID 705)
# and all other PCNs - truncated to a sample of four PCN performances:
cvd_indicator_metric_systemlevel_comparison(metric_id = 1270,
time_period_id = 17, area_id = 705) |>
dplyr::filter(AreaID %in% c(705:709), !is.na(Value)) |>
dplyr::select(SystemLevelName, AreaID, AreaName, Value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.