Learn R Programming

BMSC (version 0.2.1)

addPowToVars: Add exponent to a vector of variables

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

addPowToVars(vars, power)

Arguments

vars

character: variable names

power

integer: exponent

Value

Vector of same length as vars

Examples

Run this code
# NOT RUN {
BMSC:::addPowToVars(c("x1", "x2"), 2)
# }

Run the code above in your browser using DataLab