bdCreateEmptyDataset_hdf5: Create groups

View source: R/RcppExports.R

bdCreateEmptyDataset_hdf5R Documentation

Create groups

Description

Create groups in hdf5 data file

Usage

bdCreateEmptyDataset_hdf5(
  filename,
  group,
  dataset,
  nrows,
  ncols,
  overwrite = FALSE
)

Arguments

filename,

character array indicating the name of the file to create

group,

string with name of the group where the new dataset will be created

dataset,

string with name for the new dataset

nrows,

integer with the number of rows for the new dataset

ncols,

integer with the number of columns for the new dataset

overwrite,

optional boolean if true datasets exists, replaces old dataset with a new empty dataset

Value

none

Examples


matA <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15), nrow = 3, byrow = TRUE)

bdCreate_hdf5_matrix_file("BasicMatVect.hdf5", matA, "INPUT", "matA")

bdCreateEmptyDataset_hdf5("BasicMatVect.hdf5", "INPUT", "EmptyMat", 100, 10)


# Remove file (used as example)
  if (file.exists("BasicMatVect.hdf5")) {
    # Delete file if it exist
    file.remove("BasicMatVect.hdf5")
  }
  

BigDataStatMeth documentation built on March 30, 2022, 1:07 a.m.