R: Parse formula

parse.formula {ranger} | R Documentation

## Parse formula

### Description

Parse formula and return dataset containing selected columns. Interactions are supported for numerical columns only. An interaction column is the product of all interacting columns.

### Usage

    parse.formula(formula, data)

### Arguments

`formula` | Object of class `formula` or `character` describing the model to fit.
`data` | Training data of class `data.frame`.

### Value

Dataset including selected columns and interactions.

[Package ranger version 0.7.0 Index]