readhdf5 | R Documentation |
Reads data from an HDF5 file, including attributes, into a nested list that preserves the hierarchical structure of the HDF5 data. The routine can read 64-bit integers and represent them as 64-bit integers in R via the bit64
package. It can also read 32-bit floating points values, not part of native R. These are automatically converted into 64-bit doubles.
readhdf5(file, subtree = "*", group.attr.as.data = FALSE, empty = FALSE)
file |
Character string specifying the file name of the input HDF5 file. |
subtree |
A structure specifying the HDF5 groups and datasets to be read. Use an asterisk |
group.attr.as.data |
Logical flag. If |
empty |
Logical flag. If |
This function, based on the hdf5r
package, recursively parses and reads HDF5 files into nested lists that preserve the original hierarchy. Attributes in groups and datasets are included in the output.
Nested list representing the contents of the HDF5 file. Groups are nested sublists, datasets are represented by their data. Attributes of groups and datasets are attached as attributes to the corresponding sublists and data elements.
writehdf5
for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.