An HDF5 Attribute
object is used to store meta data about a primary
data object like DataSet
, H5Group
or
H5File
. The functions described in this section show a
low--level interface to read and write attributes. See
H5Location
for the easier-to-use h5attr
convenience functions.
writeAttribute(.Object, data = GetDimensions(data), transpose = TRUE)# S4 method for Attribute
writeAttribute(.Object, data = GetDimensions(data),
transpose = TRUE)
readAttribute(.Object)
# S4 method for Attribute
readAttribute(.Object)
Attribute; S4 object of class Attribute
.
object; Object to be stored in HDF5 file, can be either of type vector, matrix or array.
logical; Determine if data object should be transposed.
Attribute
s are assumed to be like small DataSet
s since
they can store the same data types in homogeneous objects like vectors,
matrices and arrays. However, there are two important differences compared to
DataSet
objects:
Attributes do not support compression or chunking.
Subsetting is not possible for attribute data.
http://www.hdfgroup.org/HDF5/doc/H5.intro.html#Intro-OAttributes