unbinders: Unbind (remove) shadow from data, and vice versa

unbindersR Documentation

Unbind (remove) shadow from data, and vice versa

Description

Remove the shadow variables (which end in ⁠_NA⁠) from the data, or vice versa. This will also remove the nabular class from the data.

Usage

unbind_shadow(data)

unbind_data(data)

Arguments

data

data.frame containing shadow columns (created by bind_shadow())

Value

data.frame without shadow columns if using unbind_shadow(), or without the original data, if using unbind_data().

Examples


# bind shadow columns
aq_sh <- bind_shadow(airquality)

# print data
aq_sh

# remove shadow columns
unbind_shadow(aq_sh)

# remove data
unbind_data(aq_sh)

# errors when you don't use data with shadows
## Not run: 
 unbind_data(airquality)
 unbind_shadow(airquality)

## End(Not run)


njtierney/naniar documentation built on March 19, 2024, 9:48 p.m.