The goal of CVD Prevent is to provide an R wrapper to the CVD Prevent application programming interface (API). Users can make API requests through built-in R functions.
The Cardiovascular Disease Prevention Audit (CVDPREVENT) is an England-wide primary care audit that automatically extracts routinely held GP data. The Data & Improvement Tool provides open access to the data, with clear, actionable insights for those tasked with improving cardiovascular health.
You can install the development version of cvdprevent from GitHub with:
# install.packages("devtools")
::install_github("craig-parylo/cvdprevent") devtools
Alternatively, install the latest stable release from CRAN with:
::install.packages("cvdprevent") utils
This is a basic example which shows you how to solve a common problem:
library(cvdprevent)
## basic example code
cvd_indicator_list() |>
head(n = 4)
#> # A tibble: 4 × 10
#> AxisCharacter DataUpdateInterval FormatDisplayName IndicatorCode
#> <chr> <lgl> <chr> <chr>
#> 1 % NA Proportion % CVDP001AF
#> 2 % NA Proportion % CVDP002AF
#> 3 % NA Proportion % CVDP001HYP
#> 4 % NA Proportion % CVDP004HYP
#> # ℹ 6 more variables: IndicatorFormatID <int>, IndicatorID <int>,
#> # IndicatorName <chr>, IndicatorOrder <int>, IndicatorShortName <chr>,
#> # IndicatorStatus <chr>
See vignette('using_cvdprevent', package = 'cvdprevent')
for more guidance on use