Learn R Programming

h5 (version 0.9.9)

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 of DataSet and R-object are compatible.

  2. Dimensions of DataSet and R-object match (no recycling).

  3. DataSet does not exceed maximum dimensions as specified at creation.

Usage

extendDataSet(.Object, dims)

# S4 method for DataSet,numeric extendDataSet(.Object, dims)

# S4 method for 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.