flag_na {campfin} | R Documentation |
Flag Missing Values With New Column
Description
This function uses dplyr::mutate()
to create a new na_flag
logical
variable with TRUE
values for any record missing any value in the
selected columns.
Usage
flag_na(data, ...)
Arguments
data |
A data frame to flag. |
... |
Arguments passed to |
Value
A data frame with a new na_flag
logical variable.
Examples
flag_na(dplyr::starwars, hair_color)
[Package campfin version 1.0.11 Index]