check_na: Return missingness info for a variable

Description Usage Arguments Value Examples

View source: R/check_na.R

Description

Take variable as input and compute the number of total observations, number of missing observations and number of non-missing observations.

Usage

1
check_na(variable)

Arguments

variable

Numeric, complex, or logical vectors.

Value

A matrix including the number of total, missing, and non-missing observations

Examples

1
2
check_na(c(NA, NA, 3, "cbds!", 4.5))
check_na(iris$Sepal.Width)

JaneEverydayDoe/cbds documentation built on Oct. 30, 2019, 7:36 p.m.