Learn R Programming

caretEnsemble (version 2.0.0)

c.train: S3 definition for concatenating train objects

Description

take N objects of class train and concatenat into an object of class caretList for future Ensamble'ing

Usage

# S3 method for train
c(...)

Arguments

...

the objects of class train to bind into a caretList

Value

a caretList object

Examples

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

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

 bigList <- c(model_list1, model_list2)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab