Add a shadow shifted column to a dataset
Shadow shift missing values using only the selected variables in a dataset,
by specifying variable names or use dplyr vars
and dplyr verbs
starts_with
, contains
, ends_with
, etc.
add_shadow_shift(data, ..., suffix = "shift")
data |
data.frame |
... |
One or more unquoted variable names separated by commas. These also
respect the dplyr verbs |
suffix |
suffix to add to variable, defaults to "shift" |
data with the added variable shifted named as var_suffix
airquality %>% add_shadow_shift(Ozone, Solar.R)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.