Compute "Blood Pressure [Youth] (Diastolic): Mean"
Source:R/scores_ph.R
compute_ph_y_bp__dia_mean.Rd
Computes the summary score ph_y_bp__dia_mean
Blood Pressure [Youth] (Diastolic): Mean
Summarized variables:
ph_y_bp__dia__r01_001
ph_y_bp__dia__r01_002
ph_y_bp__dia__r01_003
ph_y_bp__dia__r02_001
ph_y_bp__dia__r02_002
ph_y_bp__dia__r03_001
ph_y_bp__dia__r03_002
Format
vars_ph_y_bp__dia is a character vector of all column names
used to compute summary scores of ph_y_bp__dia
.
Arguments
- data
tbl, Dataframe containing the columns to be summarized.
- name
character, Name of the new column to be created. Default is the name in description, but users can change it.
- combine
logical, If
TRUE
, the summary score will be appended to the input data frame. IfFALSE
, the summary score will be returned as a separate data frame.
Examples
if (FALSE) { # \dontrun{
compute_ph_y_bp__dia_mean(data) |>
select(
all_of(c("ph_y_bp__dia_mean", vars_ph_y_bp__dia))
)
} # }