get_pacer_score {capl}R Documentation

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).

Details

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

Value

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

Examples

get_pacer_score(c(1, 6, 12, 18, NA, 46, 31, 45.1))

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


[Package capl version 1.42 Index]