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

Description Usage Arguments Value See Also Examples

View source: R/isNA.R

Description

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

Usage

1
2
3
4
5
## S3 method for class 'ff'
 is.na(x, ...)

## S3 replacement method for class '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

1
2
3
4
5
6
7
8
9
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

ffbase documentation built on Feb. 27, 2021, 5:06 p.m.