| Library: | xplore |
| See also: | countNaN countNotNumber isInf isNaN |
| Quantlet: | isNumber | |
| Description: | Determines whether elements of an array are usual figures or not (NaN, Inf, -Inf). |
| Usage: | y = isNumber (x) | |
| Input: | ||
| x | array | |
| Output: | ||
| y | array with 1 (true, is NaN) or 0 (false) | |
library("xplore")
x = #(0/0, 1/0, -1/0, 1)
x ~ isNumber (x)
Contents of _tmp [1,] NaN 0 [2,] Inf 0 [3,] -Inf 0 [4,] 1 1
| Library: | xplore |
| See also: | countNaN countNotNumber isInf isNaN |