View source: R/knowledge_and_understanding.R
get_ku_score | R Documentation |
This function computes a knowledge and understanding domain score (ku_score
) based on the physical activity guideline (pa_guideline_score
),
cardiorespiratory fitness means (crf_means_score
), muscular strength and endurance means (ms_score
),
sports skill (sports_skill_score
) and fill in the blanks (fill_in_the_blanks_score
) scores. If one of the scores is missing or invalid, a weighted
domain score will be computed from the other four scores. This score is used to compute the overall physical literacy score (capl_score
).
get_ku_score( pa_guideline_score = NA, crf_means_score = NA, ms_means_score = NA, sports_skill_score = NA, fill_in_the_blanks_score = NA )
pa_guideline_score |
A numeric (integer) vector (valid values are between 0 and 1). |
crf_means_score |
A numeric (integer) vector (valid values are between 0 and 1). |
ms_means_score |
A numeric (integer) vector (valid values are between 0 and 1). |
sports_skill_score |
A numeric (integer) vector (valid values are between 0 and 1). |
fill_in_the_blanks_score |
A numeric (integer) vector (valid values are between 0 and 6). |
Other capl
functions called by this function include: validate_scale()
.
Returns a numeric vector with values between 0 and 10 (if valid) or NA (if not valid).
get_ku_score( pa_guideline_score = c(1, 0, 1, 1, NA), crf_means_score = c(0, 1, "", 2, 1), ms_means_score = c(1, 1, 1, 0, 0), sports_skill_score = c(0, 0, 1, 0, 1), fill_in_the_blanks_score = c(5, 6, 3, 1, 2) ) # [1] 7.000000 8.000000 6.666667 2.222222 4.444444
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.