get_capl_domain_status: Compute the status of a CAPL domain.

Description Usage Arguments Details Value Examples

View source: R/capl.R

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

1

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:

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

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

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

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

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

1
2
3
4
5
6
7
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" 

capl documentation built on March 16, 2021, 9:06 a.m.