extract_dim: Set the correct dimension attribute for an object

View source: R/convert.R

extract_dimR Documentation

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

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

Value

x, but with a new dimension attribute

Author(s)

Holger Hoefling


hdf5r documentation built on Jan. 22, 2023, 1:12 a.m.