Learn R Programming

caretEnsemble (version 2.0.3)

c.train: S3 definition for concatenating train objects

Description

take N objects of class train and concatenate into an object of class caretList for future ensembling

Usage

# S3 method for train
c(...)

Value

a caretList object

Arguments

...

the objects of class train to bind into a caretList

Examples

Run this code
if (FALSE) {
rpartTrain <- train(Class ~ .,
                    data=Sonar,
                    trControl = ctrl1,
                    method='rpart')

rfTrain <- train(Class ~ .,
                 data=Sonar,
                 trControl = ctrl1,
                 method='rf')

 bigList <- c(model_list1, model_list2)
}

Run the code above in your browser using DataLab