
Evaluate a REDCap attention check column
REDCap_attention_check.RdReplaces a column with a logical pass/fail value based on membership in
condition, sets a label attribute, and moves the column to the end.
Examples
dat <- data.frame(attention = c("A", "B", "A"))
REDCap_attention_check(dat, attention, condition = "A")
#> attention
#> 1 TRUE
#> 2 FALSE
#> 3 TRUE