rcpp_hdf5dataset_subset: Read block from HDF5 dataset (subsetting)

View source: R/RcppExports.R

rcpp_hdf5dataset_subsetR Documentation

Read block from HDF5 dataset (subsetting)

Description

Read block from HDF5 dataset (subsetting)

Usage

rcpp_hdf5dataset_subset(ptr_sexp, rows, cols)

Arguments

ptr_sexp

External pointer to hdf5Dataset

rows

Integer vector with row indices (1-based, as in R)

cols

Integer vector with column indices (1-based, as in R)

Details

This function reads a subset of data from an HDF5 dataset. Indices are 1-based (R convention) and converted internally to 0-based (C++ convention).

The function handles:

  • Contiguous blocks (e.g., rows 1:10)

  • Non-contiguous indices (e.g., rows c(1,3,5,7))

  • Full dimensions (e.g., all rows, specific columns)

Value

Numeric matrix with requested data


BigDataStatMeth documentation built on May 15, 2026, 1:07 a.m.