R/utils.R
countInf.Rd
Count the number of infinite or missing values in a vector.
countInf(x)
a vector.
countInf returns the number of infinite values in x. countNA returns the number of missing values in x.
countInf
x
countNA
Andreas Alfons
data(sleep, package="VIM") countInf(log(sleep$Dream)) #> [1] 1 countNA(sleep$Dream) #> [1] 12