H5Iget_type: Find the type of an object

View source: R/H5I.R

H5Iget_typeR Documentation

Find the type of an object

Description

Possible types returned by the function are:

  • H5I_FILE

  • H5I_GROUP

  • H5I_DATATYPE

  • H5I_DATASPACE

  • H5I_DATASET

  • H5I_ATTR

Usage

H5Iget_type(h5identifier)

Arguments

h5identifier

Object of class H5IdComponent.

Value

Returns a character vector of length 1 containing the HDF5 type for the supplied identifier.

Examples

h5file <- system.file("testfiles", "h5ex_t_array.h5", package="rhdf5")
fid <- H5Fopen(h5file)
gid <- H5Gopen(fid, "/")

## identify the HDF5 types for these identifiers
H5Iget_type(fid)
H5Iget_type(gid)

## tidy up
H5Gclose(gid)
H5Fclose(fid)


grimbough/rhdf5 documentation built on Sept. 14, 2024, 8:41 a.m.