Skip to contents

Get a copy of the attribute datatype

Usage

H5Aget_type(h5attribute)

Arguments

h5attribute

An object of class H5IdComponent representing an attribute. Normally created by H5Aopen() or similar.

Examples

h5File <- tempfile(fileext = ".h5")
fid <- H5Fcreate(h5File)
sid <- H5Screate_simple(1)
aid <- H5Acreate(fid, "some_attribute", "H5T_NATIVE_INT", sid)

tid <- H5Aget_type(aid)
H5Tget_class(tid)
#> [1] "H5T_INTEGER"

H5Aclose(aid)
H5Sclose(sid)
H5Fclose(fid)
file.remove(h5File)
#> [1] TRUE