Count Missing Values

Share:

Description

Counts the number of missing values.

Usage

1
    na.count(X, margin, fraction=TRUE)

Arguments

X

an array, including a matrix.

margin

a vector giving the subscripts to count over.

fraction

whether to return the fraction of missing values.

Value

The number (or fraction) of missing values.