util_eval_rule {dataquieR} | R Documentation |
Evaluate a parsed redcap rule for given study data
Description
also allows to use VAR_NAMES
in the rules,
if other labels have been selected
Usage
util_eval_rule(
rule,
ds1,
meta_data = "item_level",
use_value_labels,
replace_missing_by = "NA",
replace_limits = TRUE
)
Arguments
rule |
the redcap rule (parsed, already) |
ds1 |
the study data as prepared by |
meta_data |
the metadata |
use_value_labels |
map columns with |
replace_missing_by |
enum LABEL | INTERPRET | NA . Missing codes should
be replaced by the missing labels, the
|
replace_limits |
logical replace hard limit violations by |
Value
the result of the parsed rule
See Also
Other redcap:
util_get_redcap_rule_env()
[Package dataquieR version 2.5.1 Index]