checkna: Find and count NA values in a data set

View source: R/checkna.R

checknaR Documentation

Find and count NA values in a data set

Description

Find and count NA values in each row observation of a data set.

Usage

checkna(X)

Arguments

X

A matrix or data frame.

Value

A data frame summarizing the numbers of NA by rows.

Examples


dat <- data.frame(
  v1 = c(NA, rnorm(9)), 
  v2 = c(NA, rnorm(8), NA),
  v3 = c(NA, NA, NA, rnorm(7))
)
dat

checkna(dat)


mlesnoff/rnirs documentation built on April 24, 2023, 4:17 a.m.