Creates an HDF5 dataset of size nrows x ncols and optionally writes
data to it. Replaces bdCreate_hdf5_matrix() /
bdCreate_hdf5_emptyDataset() in the R6+S3 interface so that
compression can be controlled from R.
rcpp_hdf5_create_matrix(
filename,
group,
dataset,
nrows,
ncols,
data = NULL,
dtype = "real",
overwrite_file = FALSE,
overwrite_dataset = FALSE,
compression = 6L
)Named list with filename and path of the created dataset.
Character. Path to the HDF5 file.
Character. Group path inside the file.
Character. Dataset name.
Integer. Number of rows (>= 1).
Integer. Number of columns (>= 1).
Optional numeric/integer matrix or data.frame; NULL creates an empty (zero-filled) dataset.
Character. Element type: "real" (default), "int", "logical".
Logical. Recreate file if it already exists.
Logical. Replace dataset if it already exists.
Integer 0-9. gzip compression level (0 = no compression, 6 = balanced default). Applied to the new dataset only.