Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: countNotNumber isInf isNaN isNumber

Macro: 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)))

Example:
library("xplore")
x = #(0/0, 1/0, -1/0, 1)
countNaN (x)
Result:

Contents of n  
[1,]     1 

Library: xplore
See also: countNotNumber isInf isNaN isNumber

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: TTK, 960424
(C) MD*TECH Method and Data Technologies, 28.6.1999