h5Exists | R Documentation |
Check existence of an HDF5 link
h5Exists(x, name, ...)
## S3 method for class 'H5Group'
h5Exists(x, name, ...)
## S3 method for class 'H5File'
h5Exists(x, name, ...)
## S3 method for class 'character'
h5Exists(x, name, ...)
x |
An |
name |
Name of HDF5 link to be checked. |
... |
Arguments passed to |
If any parent directory of name
doesn't exist, will simply
return FALSE
file <- system.file("extdata", "pbmc_small.h5ad", package = "hdf5r.Extra")
h5Exists(file, "/")
h5Exists(file, "obs")
h5Exists(file, "X")
h5fh <- h5TryOpen(file, mode = "r")
h5Exists(h5fh, "obs")
h5obj <- h5Open(h5fh, "obs")
h5Exists(h5obj, "groups")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.