Learn R Programming

salad (version 1.2)

bind: Binding methods for dual objects

Description

Methods allowing to use `cbind` and `rbind` with dual objects.

Usage

# S4 method for dual,dual
rbind2(x,y,...)

# S4 method for dual,numericOrArray rbind2(x,y,...)

# S4 method for numericOrArray,dual rbind2(x,y,...)

# S4 method for dual,missing rbind2(x,y,...)

# S4 method for dual,dual cbind2(x,y,...)

# S4 method for dual,numericOrArray cbind2(x,y,...)

# S4 method for numericOrArray,dual cbind2(x,y,...)

# S4 method for dual,missing cbind2(x,y,...)

Value

A dual matrix combining the arguments.

Arguments

x, y

dual or numeric objects

...

extra parameters (ignored)

Examples

Run this code
x <- dual( c(1, 3) )
y <- cbind(x, 2*x+1, 3*x+2, c(0,1))
y
d(y, "x1")


Run the code above in your browser using DataLab