Learn R Programming

rchemo (version 0.1-3)

checkna: Find and count NA values in a dataset

Description

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

Usage

checkna(X)

Value

A data frame summarizing the numbers of NA by rows.

Arguments

X

A dataset.

Examples

Run this code

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

checkna(X)

Run the code above in your browser using DataLab