Guess the orientation from model formula
guess_orientation(
orientation = NULL,
formula = NULL,
default.formula = y ~ x,
formula.on.x = FALSE
)Named list with members formula and orientation.
character "x" or "y".
model formula based on x and y.
logical Flip x and y in formula, used when the x and y in data are not flipped in the compute function.
Set defaults for both orientation and formula,
ensuring consistency both when x and y and swapped in data and when they
are not.