powered by
Reads entire HDF5 dataset into memory as a data.frame. WARNING: This loads all data into RAM.
# S3 method for HDF5Matrix as.data.frame( x, row.names = NULL, optional = FALSE, force = FALSE, max_size_mb = NULL, ... )
data.frame with data from HDF5 file
An HDF5Matrix object
HDF5Matrix
Logical or character vector. Row names to use.
Logical. Passed to as.data.frame.
as.data.frame
Logical. If TRUE, skip size warnings.
TRUE
Numeric. Maximum size in MB to convert without warning.
Additional arguments passed to as.data.frame
First converts to matrix using as.matrix.HDF5Matrix (with same size checks), then to data.frame. All memory warnings apply.
as.matrix.HDF5Matrix
# \donttest{ fn <- tempfile(fileext = ".h5") X <- hdf5_create_matrix(fn, "data/X", data = matrix(rnorm(500), 100, 5)) df <- as.data.frame(X) hdf5_close_all() unlink(fn) # }
Run the code above in your browser using DataLab