Introduction

Item computation level metadata contains instructions about the creation of new variables non-present in the original data frames.


Item computation level metadata for data quality reporting

Currently the following attributes can be used in dataquieR:

VAR_NAMES

This column defines the variable name to be created using the following rule. The input must be a string without blank spaces. The metadata for these new variables to compute can be indicated with the original variables in the item_level metadata.


COMPUTATION_RULE

It contains the rule to be used to compute values of the current variable (i.e., item). For example a new variable can be created in the following way:

## Warning in attr(x, "align"): 'xfun::attr()' is deprecated.
## Use 'xfun::attr2()' instead.
## See help("Deprecated")
VAR_NAMES COMPUTATION_RULE
new_var1 [ARM_CIRC_0] * 2)
new_var2 [SBP_0] - [DBP_0]


Back to Metadata