rcpp_hdf5dataset_subset
rcpp_hdf5dataset_subset
OTHER
1 Usage
rcpp_hdf5dataset_subset(ptr_sexp, rows, cols)2 Arguments
| Parameter | Description |
|---|---|
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) |
3 Value
Numeric matrix with requested data
4 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)