as.matrix.hdf5.dataset {rhdf5} | R Documentation |
If an object of class hdf5.dataset
has dimension two then it
can be coerced into an R matrix. This function carries out the
coercion. Be careful though as these can be very large.
as.matrix.hdf5.dataset(x)
x |
An object of class hdf5.dataset . |
The coercion may require a type coercion from the specific HDF5 type to one of the standard R types (such as integer or double).
A duplicate of x
as an R object if x
has dimension two.
R. Gentleman
## Not run: mad <- hdf5.open("microarray.h5") x1 <- hdf5.dataset(mad, "asmat", dim=c(31, 12)) set.seed(777) x1[] <- rexp(372,4) y <- as.matrix(x1) ## End(Not run)