count.na: Count.NA

View source: R/count.na.R

count.naR Documentation

Count.NA

Description

Count the number of NA values in a data frame or vector.

Usage

## S3 method for class 'na'
count(x)

Arguments

x

an object to count. All bets are off if you don't pass a data frame or a vector.

Value

If x is a vector, returns a single numeric count of the NAs in the vector. If x is a data frame, returns a two-column data frame with counts for each column of the data frame.


crazybilly/ucbudar documentation built on July 15, 2024, 5:03 p.m.