Learn R Programming

lazyNumbers (version 1.2.1)

is.na: Missing lazy values

Description

Check whether values are missing in lazy vectors and lazy matrices.

Usage

# S4 method for lazyVector
is.na(x)

# S4 method for lazyMatrix is.na(x)

# S4 method for lazyVector anyNA(x, recursive = FALSE)

# S4 method for lazyMatrix anyNA(x, recursive = FALSE)

Value

The is.na function returns a logical vector or a logical matrix, and the anyNA function returns a logical value.

Arguments

x

a lazy vector or a lazy matrix

recursive

ignored

Examples

Run this code
is.na(NA_lazy_)
is.na(lazyvec(c(1, 2, NA, NaN, Inf)))
anyNA(lazyvec(c(1, 2, NA)))

Run the code above in your browser using DataLab