is.finite {rhdf5} | R Documentation |
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.
is.finite(x, ...) is.finite.hdf5.dataset(x, ...)
x |
Any object in the first case and an object of class
hdf5.dataset in the second. |
... |
Additional arguments. |
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.
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.
R. Gentleman
## 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)