h5Open {hdf5r.Extra} | R Documentation |
Open an HDF5 file, file-handler or group object
Description
Open an HDF5 file, file-handler or group object
Usage
h5Open(x, name, ...)
## S3 method for class 'H5Group'
h5Open(x, name, ...)
## S3 method for class 'H5File'
h5Open(x, name, ...)
## S3 method for class 'character'
h5Open(x, name, mode = c("a", "r", "r+", "w", "w-", "x"), ...)
Arguments
x |
|
name |
Name of the opened HDF5 link. |
... |
Arguments passed to |
mode |
Passed to |
Value
An opened H5File
, H5Group
or H5D
.
Examples
file <- system.file("extdata", "pbmc_small.h5ad", package = "hdf5r.Extra")
obs <- h5Open(file, "obs", mode = "r")
stopifnot(inherits(obs, "H5Group"))
tsne <- h5Open(file, "obsm/tsne", mode = "r")
stopifnot(inherits(tsne, "H5D"))
[Package hdf5r.Extra version 0.0.6 Index]