shift_values {gratia} | R Documentation |
Shift numeric values in a data frame by an amount eps
Description
Shift numeric values in a data frame by an amount eps
Usage
shift_values(df, h, i, FUN = `+`, focal = NULL)
Arguments
df |
a data frame or tibble. |
h |
numeric; the amount to shift values in |
i |
logical; a vector indexing columns of |
FUN |
function; a function to applut the shift. Typically |
focal |
character; the focal variable when computing partial
derivatives. This allows shifting only the focal variable by |
[Package gratia version 0.9.2 Index]