addInteractionToVars: Add interactions of a specific order to a vector of variables

Description Usage Arguments Details Value Examples

View source: R/createFormula.R

Description

Add interactions of a specific order to a vector of variables

Usage

1

Arguments

order

integer: order of the interaction

vars

character: variables

Details

Interactions of variables with themselves (including polynomials of themselves) are not included.

Value

Character vector

Examples

1
BMSC:::addInteractionToVars(3, c("x1", "x2", "x3"))

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