Provides hybrid data structure for 'HDF5' file. The class is
not intended for direct-use. Please see io_read_h5 and
io_write_h5.
Methods
Method new()
constructor
Usage
LazyH5$new(file_path, data_name, read_only = FALSE, quiet = FALSE)Method save()
save data to a 'HDF5' file
Usage
LazyH5$save(
x,
chunk = "auto",
level = 7,
replace = TRUE,
new_file = FALSE,
force = TRUE,
ctype = NULL,
size = NULL,
...
)Arguments
xvector, matrix, or array
chunkchunk size, length should matches with data dimension
levelcompress level, from 1 to 9
replaceif the data exists in the file, replace the file or not
new_fileremove the whole file if exists before writing?
forceif you open the file in read-only mode, then saving objects to the file will raise error. Use
force=TRUEto force write datactypedata type, see
mode, usually the data type ofx. Trymode(x)orstorage.mode(x)as hints.sizedeprecated, for compatibility issues
...passed to self
open()method
Method open()
open connection
Method close()
close connection
Method subset()
subset data
Usage
LazyH5$subset(..., drop = FALSE, stream = FALSE, envir = parent.frame())Arguments
dropwhether to apply
dropthe subsetstreamwhether to read partial data at a time
envirif
i,j,...are expressions, where should the expression be evaluatedi, j, ...index along each dimension