DataSet: The DataSet Class

Description Usage Arguments References

Description

DataSets are used to store data objects in the HDF5 tree. Data objects contain homogeneous data of one type like numeric, integer or character and can be subsetted, extended and enriched with Attributes (see DataSet-Subset, DataSet-Extend and H5Location-Attribute). Although subsetting operators provide a convenient way to handle DataSet objects the S4 methods described in this section are used under the hood and give more control. Especially for big DataSets it can be advantageous to use these methods with DataSpace objects including hyperslab selections.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
writeDataSet(.Object, data, dspace = selectDataSpace(.Object, rep(NA_integer_,
  length(.Object@dim)), GetDimensions(data)), transpose = TRUE)

## S4 method for signature 'DataSet'
writeDataSet(.Object, data,
  dspace = selectDataSpace(.Object, rep(NA_integer_, length(.Object@dim)),
  GetDimensions(data)), transpose = TRUE)

readDataSet(.Object, dspace = selectDataSpace(.Object))

## S4 method for signature 'DataSet'
readDataSet(.Object, dspace = selectDataSpace(.Object))

## S4 method for signature 'DataSet'
h5close(.Object)

Arguments

.Object

DataSet; S4 object of class DataSet;

data

object; Object to be stored in HDF5 file, can be either of type vector, matrix or array.

dspace

DataSpace; Data space object used for data selection.

transpose

logical; Determine if data object (if is array) should be transposed.

...

additional arguments passed to c.

References

https://www.hdfgroup.org/HDF5/doc/H5.intro.html#Intro-ODatasets


h5 documentation built on May 2, 2019, 3:45 a.m.