Learn R Programming

naniar (version 0.3.1)

label_missings: Is there a missing value in the row of a dataframe?

Description

Creates a character vector describing presence/absence of missing values

Usage

label_missings(data)

Arguments

data

a dataframe or set of vectors of the same length

Value

character vector of "Missing" and "Not Missing".

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 {
label_missings(airquality)

library(dplyr)

airquality %>% mutate(is_missing = label_missings(airquality))

# }

Run the code above in your browser using DataLab