save_h5 | R Documentation |
Save objects to 'HDF5' file without trivial checks
save_h5(
x,
file,
name,
chunk = "auto",
level = 4,
replace = TRUE,
new_file = FALSE,
ctype = NULL,
quiet = FALSE,
...
)
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 |
Absolute path of the file saved
load_h5
file <- tempfile()
x <- array(1:120, dim = 2:5)
# save x to file with name /group/dataset/1
save_h5(x, file, '/group/dataset/1', chunk = dim(x))
# read data
y <- load_h5(file, '/group/dataset/1')
y[]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.