bind.polyX: Bind Several polyX Objects

Description Usage Arguments Value See Also Examples

Description

Bind several objects of class polyX.

Usage

1
2
## S4 method for signature 'polyX'
bind(x, ...)

Arguments

x

Object of class polyX.

...

Objects of class polyX to be binded to x. As many as required. It is assumed that they have been built on the same dataset of inputs.

Value

An object of class polyX, coding for a polynomial including the monomials of all the polynomials in the argument list. Its degree is the maximal degree of these polynomials. Duplicated monomials are removed.

See Also

takeoff.polyX

Examples

1
2
3
4
5
6
# Create first polynomial
P <- vect2polyX(cornell0[,1:3],c("1","2","3", "3*3*3", "3*3"))
# Create second polynomial
P2 <- vect2polyX(cornell0[,1:3], c("1","2","3", "2*3"))
# Bind them: PP=X1 + X2 + X3 + X3*X3*X3 + X3*X3 + X2*X3
PP <- bind.polyX(P, P2)

sivipm documentation built on May 2, 2019, 6:41 a.m.