For a handful of transformations on y, infer the reverse transformation. If the transformation is not recognized, return the identity function. This is primarily intended to be used for setting a default value in other functions.

infer_transformation(formula, warn = TRUE)

Arguments

formula

A formula as used by, for example, lm().

warn

A logical.

Value

A function.