Learn R Programming

BMSC (version 0.2.1)

makePoly: Create polynomial of degree maxExponent from variable names

Description

Remark: Since this function is to be used only within createFormula, the validity of the input is not checked here but in createFormula.

Usage

makePoly(vars, maxExponent)

Arguments

vars

character: variable names

maxExponent

integer: highest exponent

Value

Character vector of length(vars) times maxExponent

Examples

Run this code
# NOT RUN {
BMSC:::makePoly(vars = c("x1", "x2"), maxExponent = 3)
# }

Run the code above in your browser using DataLab