powered by
Remark: Since this function is to be used only within createFormula, the validity of the input is not checked here but in createFormula.
createFormula
addPowToVars(vars, power)
character: variable names
integer: exponent
Vector of same length as vars
vars
# NOT RUN { BMSC:::addPowToVars(c("x1", "x2"), 2) # }
Run the code above in your browser using DataLab