Learn R Programming

⚠️There's a newer version (1.42) of this package.Take me there.

capl

R package for use with data collected using the Canadian Assessment of Physical Literacy. The package contains functions that will calculate CAPL scores and interpretations from raw data.

Copy Link

Version

Install

install.packages('capl')

Monthly Downloads

253

Version

1.39

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Joel Barnes

Last Published

March 16th, 2021

Functions in capl (1.39)

get_camsa_skill_time_score

Compute the CAMSA skill + time score.
capl_demo_data

CAPL demo raw data.
get_24_hour_clock

Convert 12-hour clock values to 24-hour clock values.
get_capl

Compute all CAPL-2 scores and interpretations at once.
get_binary_score

Compute a binary score.
get_camsa_time_score

Compute the CAMSA time score.
get_ku_score

Compute a knowledge and understanding domain score.
get_capl_domain_status

Compute the status of a CAPL domain.
get_capl_score

Compute an overall physical literacy score.
get_mc_score

Compute a motivation and confidence domain score.
get_capl_interpretation

Compute a CAPL-2 interpretation for a given CAPL-2 protocol or domain score.
get_capl_bar_plot

Render a bar plot for a given CAPL-2 domain score, grouped by CAPL-2 interpretative categories.
get_pacer_20m_laps

Convert PACER shuttle run laps to their equivalent in 20-metre laps.
get_missing_capl_variables

Add required CAPL-2 variables to a data frame of raw data if they are missing.
get_pa_competence_score

Compute a physical activity competence score.
import_capl_data

Import CAPL-2 data from an Excel workbook.
get_step_score

Compute a step score.
get_plank_score

Compute a plank score.
validate_gender

Check whether a vector can be classified as "girl" or "boy".
get_adequacy_score

Compute an adequacy score.
export_capl_data

Export CAPL-2 data to an Excel workbook.
capitalize_character

Capitalize a character vector.
get_camsa_score

Select the maximum CAMSA skill + time score.
validate_steps

Check whether daily steps as measured by a pedometer are valid.
rename_variable

Rename variables in a data frame.
get_db_score

Compute a daily behaviour domain score.
get_predilection_score

Compute a predilection score.
get_fill_in_the_blanks_score

Compute a fill in the blanks score.
validate_integer

Check whether a vector is an integer.
get_pacer_score

Compute a PACER score.
get_self_report_pa_score

Compute a score for a response to the self-reported physical activity question.
validate_number

Check whether a vector is numeric.
get_step_average

Compute average daily steps taken.
get_capl_demo_data

Generate CAPL-2 demo (fake) raw data.
validate_scale

Check whether a response to a given questionnaire item or scale is valid.
validate_age

Check whether an age is valid for CAPL-2.
get_intrinsic_motivation_score

Compute an intrinsic motivation score.
get_pedometer_wear_time

Compute pedometer wear time in decimal hours for a given day.
get_pc_score

Compute a physical competence domain score.
validate_character

Check whether a vector is a character and not of length zero or "".
validate_domain_score

Check whether a CAPL-2 domain score is valid.