Learn R Programming

naniar (version 0.3.1)

add_label_shadow: Add a column describing whether there is a shadow

Description

Instead of focussing on labelling whether there are missings, we instead focus on whether there have been any shadows created. This can be useful when data has been imputed and you need to determine which rows contained missing values when the shadow was bound to the dataset.

Usage

add_label_shadow(data)

Arguments

data

data.frame

Value

data.frame with a column, "any_missing", which describes whether or not there are any rows that have a shadow value.

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
# NOT RUN {
airquality %>%
  add_shadow(Ozone, Solar.R) %>%
  add_label_shadow()

# }

Run the code above in your browser using DataLab