H5Oopen | R Documentation |
Open an object in an HDF5 file
H5Oopen(h5loc, name)
h5loc |
An object of class H5IdComponent |
name |
Path to the object to be opened. This should be relative to
|
An object of class H5IdComponent if the open operation was
successful. FALSE
otherwise.
H5Oclose()
h5File <- tempfile(pattern = "ex_H5O.h5")
# create an hdf5 file and write something
h5createFile(h5File)
h5createGroup(h5File,"foo")
B = array(seq(0.1,2.0,by=0.1),dim=c(5,2,2))
h5write(B, h5File,"foo/B")
# reopen file and dataset and get object info
fid <- H5Fopen(h5File)
oid = H5Oopen(fid, "foo")
H5Oget_num_attrs(oid)
H5Oclose(oid)
H5Fclose(fid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.