flag_na: Flag Missing Values With New Column

View source: R/flag-na.R

flag_naR 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 dplyr::select() (needs to be at least dplyr::everything()).

Value

A data frame with a new na_flag logical variable.

Examples

flag_na(dplyr::starwars, hair_color)

campfin documentation built on Oct. 20, 2023, 5:06 p.m.