add_shadow_shift: Add a shadow shifted column to a dataset

Description Usage Arguments Value See Also Examples

View source: R/add-cols.R

Description

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.

Usage

1
add_shadow_shift(data, ..., suffix = "shift")

Arguments

data

data.frame

...

One or more unquoted variable names separated by commas. These also respect the dplyr verbs starts_with, contains, ends_with, etc.

suffix

suffix to add to variable, defaults to "shift"

Value

data with the added variable shifted named as var_suffix

See Also

bind_shadow() add_any_miss() add_label_missings() add_label_shadow() add_miss_cluster() add_n_miss() add_prop_miss() add_shadow_shift() cast_shadow()

Examples

1
2
3
pedestrian %>% add_shadow_shift(hourly_counts)

airquality %>% add_shadow_shift(Ozone, Solar.R)

naniar documentation built on Nov. 20, 2018, 9:04 a.m.