Learn R Programming

BigDataStatMeth (version 1.0.3)

bdCreate_hdf5_emptyDataset: Create an empty HDF5 dataset (no data written)

Description

Creates an HDF5 dataset of size nrows × ncols inside group with name dataset, without writing data (allocation only). Honors file/dataset overwrite flags and supports unlimited datasets.

Usage

bdCreate_hdf5_emptyDataset(
  filename,
  group,
  dataset,
  nrows = 0L,
  ncols = 0L,
  overwriteFile = NULL,
  overwriteDataset = NULL,
  unlimited = NULL,
  datatype = NULL
)

Value

List with components:

fn

Character string with the HDF5 filename

ds

Character string with the full dataset path to the empty dataset (group/dataset)

Arguments

filename

Character. Path to the HDF5 file.

group

Character. Group path.

dataset

Character. Dataset name.

nrows

Integer (>= 1). Number of rows.

ncols

Integer (>= 1). Number of columns.

overwriteFile

Logical. If TRUE, allow file recreate default value FALSE.

overwriteDataset

Logical. If TRUE, replace dataset default value FALSE.

unlimited

Logical. If TRUE, create unlimited dataset default value FALSE.

datatype

Character. Element type (e.g., "real").

Examples

Run this code
if (FALSE) {
bdCreate_hdf5_emptyDataset("test.h5", "MGCCA_IN", "X", 1000, 500,
                          overwriteFile = FALSE,
                          overwriteDataset = TRUE,
                          unlimited = FALSE,
                          datatype = "real")
}

Run the code above in your browser using DataLab