
Locate the case-level grouping column by common SCED name patterns
Source:R/utils-formulas.R
find_case_var.RdMatches case/participant/subject/id
(case-insensitive). Returns the original column name.
Examples
find_case_var(data.frame(participant = 1:3, outcome = rnorm(3)))
#> [1] "participant"