DataSet
s 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 DataSet
s it can be advantageous to use these methods with
DataSpace
objects including hyperslab selections.writeDataSet(.Object, data, dspace = selectDataSpace(.Object, rep(NA_integer_,
length(.Object@dim)), GetDimensions(data)), transpose = TRUE)## S3 method for class 'DataSet':
writeDataSet(.Object, data,
dspace = selectDataSpace(.Object, rep(NA_integer_, length(.Object@dim)),
GetDimensions(data)), transpose = TRUE)
readDataSet(.Object, dspace = selectDataSpace(.Object, offset =
rep(NA_integer_, length(.Object@dim)), count = rep(NA_integer_,
length(.Object@dim))))
## S3 method for class 'DataSet':
readDataSet(.Object, dspace = selectDataSpace(.Object,
offset = rep(NA_integer_, length(.Object@dim)), count = rep(NA_integer_,
length(.Object@dim))))
## S3 method for class 'DataSet':
h5close(.Object)
DataSet
;c
.