Learn R Programming

BigDataStatMeth (version 2.0.3)

rcpp_hdf5dataset_read_dimnames: Read dimension names (rownames / colnames) from an HDF5 dataset

Description

Reads the row and column names stored alongside an HDF5 dataset following the BigDataStatMeth convention:

  • rownames stored at group/.<dataset>_dimnames/1

  • colnames stored at group/.<dataset>_dimnames/2

When a component has not been written an empty character(0) is returned for it. The function uses BigDataStatMeth::hdf5Dims in read mode (bWrite = false) so no data on disk is modified.

Usage

rcpp_hdf5dataset_read_dimnames(ptr_sexp)

Value

Named list with two character elements:

rownames

Row names, or character(0) if absent

colnames

Column names, or character(0) if absent

Arguments

ptr_sexp

External pointer (SEXP) to an open hdf5Dataset object managed by the R6 class.