
extend a compact formula to all of it's terms as they are interpreted
extend.x.formula(formula, extend.term=TRUE, return.interaction=TRUE)
a model formula.
logical. If TRUE
terms that refer to multiple variables
are split into it's multiple terms.
logical. Whether a list containing the new formula and a vector containing logical values with information about interactions should be returned or only the new formula.
If return.interaction
is TRUE
a list containing the components:
the new formula.
logical, vector giving information whether the corresponding formula term is an interaction or not.
# NOT RUN {
data(spider)
spiddat <- mvabund(spider$abund)
X <- spider$x
foo <- mvformula(spiddat~ X[,1]*X[,2]+log(X[,3]))
extend.x.formula(foo)
# }
Run the code above in your browser using DataLab