makePoly: Create polynomial of degree 'maxExponent' from variable names

Description Usage Arguments Value Examples

View source: R/createFormula.R

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

1
makePoly(vars, maxExponent)

Arguments

vars

character: variable names

maxExponent

integer: highest exponent

Value

Character vector of length(vars) times maxExponent

Examples

1
BMSC:::makePoly(vars = c("x1", "x2"), maxExponent = 3)

BMSC documentation built on Aug. 2, 2019, 5:05 p.m.

Related to makePoly in BMSC...