Skip to contents

This function calculates the number of variables or cases that contain a missing value

Usage

n_var_miss(data)

n_case_miss(data)

Arguments

data

data.frame

Value

integer, number of missings

See also

Examples

# how many variables contain missing values?
n_var_miss(airquality)
#> [1] 2
n_case_miss(airquality)
#> [1] 42