data_first.RdA function that ensures the first argument is always for 'data' - allows greater compatibility with the pipe operator.
data_first(data_obj, fun_to_apply, ...)An R function that has a
data argument (e.g., stats::lm).
Additional arguments for the given function.
An R object to pass to a given
function's data argument.
The associated output for the fun_to_apply
function.