flag_na: Flag Missing Values With New Column

Description Usage Arguments Value Examples

View source: R/flag-na.R

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

1

Arguments

data

A data frame to flag.

...

Arguments passed to dplyr::select() (needs to be at least dplyr::everything()).

Value

A data frame with a new na_flag logical variable.

Examples

1
flag_na(dplyr::starwars, hair_color)

campfin documentation built on April 13, 2021, 1:07 a.m.