compute_ph_p_cna_nm | R Documentation |
Computes the summary score ph_p_cna_sum
Child Nutrition Assessment [Parent]: Sum [Validation: No more than 0
missing or declined]
Summarized variables:
ph_p_cna_001
ph_p_cna_002
ph_p_cna_003
ph_p_cna_004
ph_p_cna_005
ph_p_cna_006
ph_p_cna_007
ph_p_cna_008
ph_p_cna_009
ph_p_cna_010
ph_p_cna_011
ph_p_cna_012
ph_p_cna_013
ph_p_cna_014
Excluded values:
999
777
compute_ph_p_cna_nm(
data,
name = "ph_p_cna_nm",
exclude = c("777", "999"),
combine = TRUE
)
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. |
exclude |
character, Values to be excluded from the summary score. |
combine |
logical, If |
tbl. The input data frame with the summary score appended as a new column.
## Not run:
compute_ph_p_cna_nm(data) |>
select(
all_of(c("ph_p_cna_nm", vars_ph_p_cna))
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.