R/api.R
R/api-generics.R
nv_is_nan.Rd
Element-wise check if values are NaN. You can also use is.nan().
is.nan()
nv_is_nan(operand) # S3 method for class 'AnvlBox' is.nan(x)
(arrayish) Operand.
arrayish
arrayish Has the same shape as the input and boolean data type.
nv_is_finite(), nv_is_infinite()
nv_is_finite()
nv_is_infinite()
x <- nv_array(c(1, NaN, Inf, -Inf, 0)) nv_is_nan(x) #> AnvlArray #> 0 #> 1 #> 0 #> 0 #> 0 #> [ CPUbool{5} ]