c.train: S3 definition for concatenating train objects

Description Usage Arguments Value Examples

View source: R/S3GenericExtenstions.R

Description

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

Usage

1
2
## S3 method for class 'train'
c(...)

Arguments

...

the objects of class train to bind into a caretList

Value

a caretList object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

## End(Not run)

zachmayer/caretEnsemble documentation built on Nov. 7, 2017, 5:01 a.m.