bdCreate_hdf5_matrix_file: Create hdf5 data file and write data to it

View source: R/RcppExports.R

bdCreate_hdf5_matrix_fileR Documentation

Create hdf5 data file and write data to it

Description

Creates a hdf5 file with numerical data matrix,

Usage

bdCreate_hdf5_matrix_file(
  filename,
  object,
  group = NULL,
  dataset = NULL,
  transp = NULL,
  force = NULL
)

Arguments

filename,

character array indicating the name of the file to create

object

numerical data matrix

group,

character array indicating folder name to put the matrix in hdf5 file

dataset,

character array indicating the dataset name to store the matix data

transp

boolean, if trans=true matrix is stored transposed in hdf5 file

force,

optional boolean if true and file exists, removes old file and creates a new file with de dataset data.

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")

# 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.