Library: | xplore |
See also: | countNotNumber isInf isNaN isNumber |
Quantlet: | countNaN | |
Description: | Counts how many missing values (NaN) are in an array. |
Usage: | n = countNaN (x) | |
Input: | ||
x | array | |
Output: | ||
n | number of NaNs (between 0 and prod(dim(x))) |
library("xplore") x = #(0/0, 1/0, -1/0, 1) countNaN(x)
Contents of n [1,] 1