get_capl_domain_status: Compute the status of a CAPL domain.

View source: R/capl.R

get_capl_domain_statusR Documentation

Compute the status of a CAPL domain.

Description

This function computes the status ("complete", "missing interpretation", "missing protocol" or "incomplete") of a CAPL domain (e.g., pc_status, db_status, mc_status, ku_status, capl_status).

Usage

get_capl_domain_status(x = NULL, domain = NA)

Arguments

x

A data frame that includes the required variables for a given domain (see Details).

domain

A character vector representing one of the CAPL-2 domains (valid values are "pc", "db", "mc", "ku" and "capl")

Details

If the domain argument is set to "pc", the following variables must be included in the x argument:

  • pc_score

  • pc_interpretation

  • pacer_score

  • plank_score

  • camsa_score

If the domain argument is set to "db", the following variables must be included the x argument:

  • db_score

  • db_interpretation

  • step_score

  • self_report_pa_score

If the domain argument is set to "mc", the following variables must be included the x argument:

  • mc_score

  • mc_interpretation

  • predilection_score

  • adequacy_score

  • intrinsic_motivation_score

  • pa_competence_score

If the domain argument is set to "ku", the following variables must be included the x argument:

  • ku_score

  • ku_interpretation

  • pa_guideline_score

  • crf_means_score

  • ms_means_score

  • sports_skill_score

  • fill_in_the_blanks_score

If the domain argument is set to "capl", the following variables must be included the x argument:

  • capl_score

  • capl_interpretation

  • pc_score

  • db_score

  • mc_score

  • ku_score

  • capl_score

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

Value

Returns a character vector with a value of "complete", "missing interpretation", "missing protocol" or "incomplete".

Examples

capl_demo_data <- get_capl_demo_data(3)

capl_results <- get_capl(capl_demo_data)

get_capl_domain_status(capl_results, "pc")

# [1] "complete"               "incomplete"             "missing interpretation"


barnzilla/capl documentation built on April 2, 2022, 8:50 a.m.