io_write_h5 {ieegio} | R Documentation |
Save objects to 'HDF5' file without trivial checks
Description
Save objects to 'HDF5' file without trivial checks
Usage
io_write_h5(
x,
file,
name,
chunk = "auto",
level = 4,
replace = TRUE,
new_file = FALSE,
ctype = NULL,
quiet = FALSE,
...
)
Arguments
x |
an array, a matrix, or a vector |
file |
path to 'HDF5' file |
name |
path/name of the data; for example, |
chunk |
chunk size |
level |
compress level from 0 - no compression to 10 - max compression |
replace |
should data be replaced if exists |
new_file |
should removing the file if old one exists |
ctype |
data type such as "character", "integer", or "numeric". If
set to |
quiet |
whether to suppress messages, default is false |
... |
passed to other |
Value
Absolute path of the file saved
See Also
Examples
file <- tempfile()
x <- array(1:120, dim = 2:5)
# save x to file with name /group/dataset/1
io_write_h5(x, file, '/group/dataset/1', chunk = dim(x))
# load data
y <- io_read_h5(file, '/group/dataset/1')
# read data to memory
y[]
# clean up
unlink(file)
[Package ieegio version 0.0.1 Index]