Learn R Programming

h5 (version 0.9.1)

DataSpace: The DataSpace Class

Description

The DataSpace class used to select data elements from DataSet objects. DataSpace objects can be generated using the S4--method selectDataSpace from DataSets objects in 3 ways:
  1. Without any parameters: Select all elements inDataSet
. With offset and count: Select contiguous sub--region (hyperslab) from DataSet. With parameter elem: Select sub-elements specified by matrix holding selected indices. This selection type can become slow for many data points.

Usage

## S3 method for class 'DataSpace':
h5close(.Object)

selectDataSpace(.Object, offset = rep(NA_integer_, length(.Object@dim)), count = rep(NA_integer_, length(.Object@dim)), elem)

## S3 method for class 'DataSet,missing,missing,missing': selectDataSpace(.Object)

## S3 method for class 'DataSet,ANY,ANY,missing': selectDataSpace(.Object, offset, count)

## S3 method for class 'DataSet,missing,missing,matrix': selectDataSpace(.Object, elem)

Arguments

.Object
DataSet; S4 object of class DataSet (DataSpace for h5close).
offset
numeric; Offset to be selected from Hyperslab.
count
numeric; Count to be selected from Hyperslab.
elem
matrix; Matrix specifying element selection coordinates. Columns specify rank, rows specify different points.
...
additional arguments passed to c.

References

http://www.hdfgroup.org/HDF5/doc/UG/UG_frame12Dataspaces.html