miss_var_which: Which variables contain missing values?

View source: R/where-na.R

miss_var_whichR Documentation

Which variables contain missing values?

Description

It can be helpful when writing other functions to just return the names of the variables that contain missing values. miss_var_which returns a vector of variable names that contain missings. It will return NULL when there are no missings.

Usage

miss_var_which(data)

Arguments

data

a data.frame

Value

character vector of variable names

Examples

miss_var_which(airquality)

miss_var_which(mtcars)


naniar documentation built on May 29, 2024, 1:43 a.m.