Learn R Programming

h5 (version 0.9.1)

DataSet-Extend: Functions to Extend a DataSet

Description

DataSets can be extended with R--objects (e.g. vectors, matrices, arrays) if the following conditions are met:
  1. Datatype ofDataSetand R-object are compatible.
Dimensions of DataSet and R-object match (no recycling). DataSet does not exceed maximum dimensions as specified at creation.

Usage

extendDataSet(.Object, dims)

## S3 method for class 'DataSet,numeric': extendDataSet(.Object, dims)

## S3 method for class 'DataSet': c(x, ..., recursive = FALSE)

Arguments

.Object,x
DataSet; S4 object of class DataSet;
dims
numeric; Dimensions of DataSet.
...
additional arguments passed to c.
recursive
logical; Argument passed to c.

Details

Known base functions have been overloaded to extend vectors (c) and matrices (rbind, cbind). Also the lower--level S4--method extendDataSet can be used to extend existing DataSet objects.