is.finite {rhdf5}R Documentation

Test to see if elements are finite.

Description

An array of logicals (with the same dimensions as x) is produced. Each element indicates whether the corresponding value of x is finite or not.

Usage

is.finite(x, ...)
is.finite.hdf5.dataset(x, ...)

Arguments

x Any object in the first case and an object of class hdf5.dataset in the second.
... Additional arguments.

Details

For HDF5 datasets this can create a very large object. Currenly we create in the temporary HDF5 working directory. It would be nice to allow a location parameter to be specified as well.

This makes is.finite generic.

Value

An object of the same dimensions (and for HDF5 it will also be an HDF5 dataset) as x containing logical values indicating whether or not the corresponding elements of x are finite.

Author(s)

R. Gentleman

See Also

as.double.hdf5.dataset

Examples

 ## Not run: 
   mad <- hdf5.open("microarray.h5")
    x1 <- hdf5.dataset(mad, "finiteex", dim=c(15, 15))
    set.seed(098)
    x1[] <- rnorm(225)
    x1[3,4:8] <- Inf
    is.finite(x1)
## End(Not run)

[Package rhdf5 version 1.4.0 Index]