powered by
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.
dplyr::mutate()
na_flag
TRUE
flag_na(data, ...)
A data frame with a new na_flag logical variable.
A data frame to flag.
Arguments passed to dplyr::select() (needs to be at least dplyr::everything()).
dplyr::select()
dplyr::everything()
flag_na(dplyr::starwars, hair_color)
Run the code above in your browser using DataLab