Skip to contents

Similar to janitor::remove_empty, except this function aims to identify the columns without removing them. If there are no identified columns, it will return NA.

Usage

cols_missing(data, cutoff = 1)

Arguments

data

The data frame

cutoff

The minimum cutoff for the proportion of missing values.

Value

A character vector of column names with missing values with at least a certain proportion.

Examples

# find columns that have any missing values
cols_missing(airquality, 0)
#> [1] "Ozone"   "Solar.R" "Wind"    "Temp"    "Month"   "Day"