cvd_area_nested_subsystems {cvdprevent}R Documentation

Area nested sub systems

Description

Returns given area and children areas in a nested structure

Usage

cvd_area_nested_subsystems(area_id = 5)

Arguments

area_id

integer - the area to return data for (compulsory)

Details

CVD Prevent API documentation: Area nested subsystems

Value

List of named tibbles containing details for the area and each sub-level areas

See Also

cvd_area_list(), cvd_area_details(), cvd_area_unassigned(), cvd_area_search(), cvd_area_flat_subsystems()

Examples

# View details for for Somerset STP
returned_list <- cvd_area_nested_subsystems(area_id = 5)
returned_list |> summary()

# see details for five of the immediate children of Somerset STP
returned_list$level_2 |>
  dplyr::slice_head(n = 5)

# View details for Leicester Central PCN
returned_list <- cvd_area_nested_subsystems(area_id = 701)
returned_list |> summary()

# see details for the GP practice children of the PCN
returned_list$level_2

[Package cvdprevent version 0.2.0 Index]