| h5_ls | R Documentation |
Lists the names of objects (datasets and groups) within an HDF5 file or group.
h5_ls(file, name = "/", recursive = TRUE, full.names = FALSE, scales = FALSE)
file |
The path to the HDF5 file. |
name |
The group path to start listing from. Defaults to the root group ( |
recursive |
If |
full.names |
If |
scales |
If |
A character vector of object names. If name is / (the default),
the paths are relative to the root of the file. If name is another group,
the paths are relative to that group (unless full.names = TRUE).
h5_attr_names(), h5_str()
file <- tempfile(fileext = ".h5")
h5_create_group(file, "foo/bar")
h5_write(1:5, file, "foo/data")
# List everything recursively
h5_ls(file)
# List only top-level objects
h5_ls(file, recursive = FALSE)
# List relative to a sub-group
h5_ls(file, "foo")
unlink(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.