Item computation level metadata contains instructions about the creation of new variables non-present in the original data frames.
Currently the following attributes can be used in
dataquieR
:
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
.
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] |