combine: Combine objects

evaluate.listR Documentation

Combine objects

Description

You can use function(model.list) or c(...) to combine multiple objects generated by functions from this package.

Usage

## S3 method for class 'list'
evaluate(x, ...)

## S3 method for class 'evaluate.train'
c(...)

## S3 method for class 'list'
varImp2(model, ...)

## S3 method for class 'varImp2'
c(...)

## S3 method for class 'list'
jackknife(model, ...)

## S3 method for class 'jackknife.train'
c(...)

## S3 method for class 'list'
confusionMatrix2(model, ...)

## S3 method for class 'list'
ROCcurve(model, ...)

## S3 method for class 'ROCcurve'
c(...)

## S3 method for class 'response.train'
c(...)

Arguments

x, model

A list of models created by train.

...

For function(model.list, ...), further arguments passed to the function. For c(...), multiple objects returned by the same function.

Details

The output function(list(model1, model2)) is the same as c(function(model1), function(model2)). But note that you can only concatenate objects obtained from models with different methods (e.g. 'rf','gbm', ...).

In contrast, using function(list(model1, model2)) will append '.1', '.2', etc if a method is repeated in the models. Optionally, you can furnish a named list, and the names will override the labels of the methods.


correapvf/caretSDM documentation built on June 2, 2022, 8:29 a.m.