Learn R Programming

ffbase (version 0.13.3)

is.na.ff: 'Not Available' / Missing Values for ff vectors

Description

The generic function is.na indicates which elements are missing. The generic function is.na<- sets elements to NA.

Usage

# S3 method for ff
is.na (x, ...)

# S3 method for ff is.na (x, ...) <- value

Arguments

x

a ff vector

...

other parameters passed on to chunk

value

a suitable ff index vector for use with x

Value

A logical ff vector of the same length of x indicating if the ff vector contains missing values.

See Also

is.na, ffvecapply

Examples

Run this code
# NOT RUN {
is.na.ff(ff(c(NA, 1:100)), BATCHBYTES=20)
## S3 generic
is.na(ff(c(NA, 1:100)))
## Assign a missing value
x <- ff(c(NA, 1:100))
is.na(x) <- ff(c(3,5))
x
is.na(x) <- 7:8
x



# }

Run the code above in your browser using DataLab