countInf function

Count number of infinite or missing values

Count number of infinite or missing values

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

countInf(x)

Arguments

  • x: a vector.

Returns

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

Examples

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

Author(s)

Andreas Alfons