Learn R Programming

VIM (version 3.0.3.1)

count: Count number of infinite or missing values

Description

Count the number of infinite or missing values in a vector.

Usage

countInf(x)

countNA(x)

Arguments

x
a vector.

Value

  • countInf returns the number of infinite values in x. countNA returns the number of missing values in x.

Examples

Run this code
data(sleep, package="VIM")
countInf(log(sleep$Dream))
countNA(sleep$Dream)

Run the code above in your browser using DataLab