get_capl_domain_status {capl}R 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:

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

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"


[Package capl version 1.42 Index]