Learn R Programming

hdf5r (version 1.3.3)

extract_dim: Set the correct dimension attribute for an object

Description

Set the correct dimension attribute for an object

Usage

extract_dim(space, dtype)

Arguments

space

The space with the selection that was used to read the dataset

dtype

The datatype of the dataset

x

an object that was read from an HDF5 dataset or attribute

Value

x, but with a new dimension attribute

Details

This function uses the space and the selection in it to set the correct dimension for the resulting object (but without dropping dimensions). Furthermore, if the datatype is an array, those dimensions are correctly determined as well.

Internal use only; currently unused