Learn R Programming

caretEnsemble (version 1.0.0)

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)

Arguments

model
a caretEnsemble to extract predictors from

Value

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