Learn R Programming

caretEnsemble (version 2.0.3)

extractModFrame: Extract a dataframe of all predictors used in a caretEnsemble object.

Description

This function constructs a dataframe consisting of the outcome and all of the predictors used in any of the models ensembled in a caretEnsemble object.

Usage

extractModFrame(model)

Value

A data.frame combining all of the variables used across all models.

Arguments

model

a caretEnsemble to extract predictors from