condition_add() tags records in a data set, indicating which rows match the
specified conditions, resulting in a conditioned data frame. Learn how to
integrate conditioned data frames in your SDTM domain derivation in
vignette("cnd_df").
A conditioned data frame, meaning a tibble with an additional class
cnd_df and a logical vector attribute indicating matching rows.
Arguments
dat
A data frame.
...
Conditions to filter the data frame.
.na
Return value to be used when the conditions evaluate to NA.
.dat2
An optional environment to look for variables involved in
logical expression passed in .... A data frame or a list can also be
passed that will be coerced to an environment internally.