Learn R Programming

capl (version 1.39)

get_pacer_score: Compute a PACER score.

Description

This function computes a PACER (Progressive Aerobic Cardiovascular Endurance Run) score (pacer_score) based on the number of PACER laps run at a 20-metre distance. This score is used to compute the physical competence domain score variable (pc_score).

Usage

get_pacer_score(pacer_laps_20m = NA)

Arguments

pacer_laps_20m

A numeric (integer) vector (valid values between 1 and 229).

Value

Returns a numeric (integer) vector with values between 0 and 10 (if valid) or NA (if not valid).

Details

Other capl functions called by this function include: validate_scale() and validate_integer().

Examples

Run this code
# NOT RUN {
get_pacer_score(c(1, 6, 12, 18, NA, 46, 31, 45.1))

# [1]  0  1  2  3 NA  9  6 NA

# }

Run the code above in your browser using DataLab