make_interaction: make_interaction

Description Usage Arguments

View source: R/create_interactions.R

Description

Function that creates an interaction term from a recipe

Usage

1
make_interaction(df, recipe, nlvl, ...)

Arguments

df

A data.frame that contains the interaction terms to be prepared

recipe

A character string containing interaction terms delimited by | e.g. "age|sex".

nlvl

Max number of levels allowed in an interaction term before its binned

...

Additional arguments to be passed to the prepare interaction function


gm209/gmtools documentation built on May 22, 2019, 2:39 p.m.