get_capl_score | R Documentation |
This function computes an overall physical literacy score (capl_score
) based on the physical competence (pc_score
), daily behaviour (db_score
),
motivation and confidence (mc_score
), and knowledge and understanding (ku_score
) domain scores. If one of the scores is missing or invalid, a
weighted score will be computed from the other three scores.
get_capl_score(pc_score = NA, db_score = NA, mc_score = NA, ku_score = NA)
pc_score |
A numeric vector (valid values are between 0 and 30). |
db_score |
A numeric (integer) vector (valid values are between 0 and 30). |
mc_score |
A numeric vector (valid values are between 0 and 30). |
ku_score |
A numeric vector (valid values are between 0 and 10). |
Other capl
functions called by this function include: validate_number()
, validate_integer()
and validate_domain_score()
.
Returns a numeric vector with values between 0 and 100 (if valid) or NA (if not valid).
get_capl_score( pc_score = c(20, 15, 12, 5, 31), db_score = c(20, 15, 6, 4.1, 25), mc_score = c(20, 20, 19, 15.4, 25), ku_score = c(11, 4, 5, 7.8, 10) ) # [1] 66.66667 54.00000 42.00000 40.28571 85.71429
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.