get_plank_score: Compute a plank score.

View source: R/physical_competence.R

get_plank_scoreR Documentation

Compute a plank score.

Description

This function computes a plank score (plank_score) based on the duration of time (in seconds) for which a plank is held. This score is used to compute the physical competence domain score (pc_score).

Usage

get_plank_score(plank_time = NA)

Arguments

plank_time

A numeric vector representing time (in seconds).

Details

Other capl functions called by this function include: validate_number().

Value

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

Examples

get_plank_score(c(120.5, 75.6, 40, 10.99, 90))

# [1] 10  6  3  0  8


capl documentation built on April 8, 2022, 9:06 a.m.