Returns all metric data for a specified indicator. Data will include values for both selected area, and organisation at National Level (usually England).
Details
CVD Prevent API documentation: Indicator data
See also
cvd_indicator_list()
, cvd_indicator_metric_list()
, cvd_indicator()
,
cvd_indicator_tags()
, cvd_indicator_details()
, cvd_indicator_sibling()
,
cvd_indicator_child_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_systemlevel_comparison()
,
cvd_indicator_metric_area_breakdown()
Examples
# Look at 'AF: treatment with anticoagulants' (indicator ID 7) in time
# period 17 for 'Leicester Central PCN' (area_id 701) focussed on metrics
# by gender:
cvd_indicator_data(time_period_id = 17, indicator_id = 7, area_id = 701) |>
dplyr::filter(MetricCategoryTypeName == 'Sex') |>
dplyr::select(MetricID, MetricCategoryName, AreaData.AreaName,
AreaData.Value, NationalData.AreaName, NationalData.Value)
#> # A tibble: 3 × 6
#> MetricID MetricCategoryName AreaData.AreaName AreaData.Value
#> <int> <chr> <chr> <dbl>
#> 1 150 Persons Leicester Central PCN 95.4
#> 2 125 Female Leicester Central PCN 94.7
#> 3 124 Male Leicester Central PCN 96.0
#> # ℹ 2 more variables: NationalData.AreaName <chr>, NationalData.Value <dbl>