Add a column describing whether there is a shadow
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.
add_label_shadow(data, ..., missing = "Missing", complete = "Not Missing")
data |
data.frame |
... |
extra variable to label |
missing |
character a label for when values are missing - defaults to "Missing" |
complete |
character character a label for when values are complete - defaults to "Not Missing" |
data.frame with a column, "any_missing", which describes whether or not there are any rows that have a shadow value.
airquality %>% add_shadow(Ozone, Solar.R) %>% add_label_shadow()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.