merge.formula: Merge Two Formulae

Description Usage Arguments Value See Also Examples

Description

Merge two formulae to combine predictors (right hand side).

Usage

1
2
3
4
5
## S3 method for class 'formula'
merge(x, y, ...)

## S3 method for class 'formula'
x + y

Arguments

x

a formula object with both response and predictor terms

y

a formula object with predictor terms (response ignored)

...

further arguments passed to or from other methods.

Value

a formula with the response form x and the predictors from both x and y

See Also

Other utility: aggMatrix, badRows, cellIdx, expand, rowProds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
f <- y ~ x
g <- ~ a * b + c

fg <- merge(f, g)
fg



fg <- f + g
fg

SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.