Returns trt_var when it is a column of df. Otherwise it returns the
first configured candidate (see tlf_config()) present in the data, with a
message. It errors when there is none.
Arguments
- df
Data frame.
- trt_var
Requested treatment/grouping column.
- config
A
tlf_config();NULLresolves throughtlf_get_config().