Learn R Programming

naniar (version 1.0.0)

add_shadow: Add a shadow column to dataframe

Description

As an alternative to bind_shadow(), you can add specific individual shadow columns to a dataset. These also respect the dplyr verbs starts_with, contains, ends_with, etc.

Usage

add_shadow(data, ...)

Value

data.frame

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.

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

Run this code

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

Run the code above in your browser using DataLab