print.gradientForest: Printing 'gradientForest' or 'combinedGradientForest' objects

print.gradientForestR Documentation

Printing gradientForest or combinedGradientForest objects

Description

Print method for gradientForest and combinedGradientForest objects.

Usage

## S3 method for class 'gradientForest'
print(x, ...)

## S3 method for class 'combinedGradientForest'
print(x,...)

Arguments

x

an object of class gradientForest generated by gradientForest or an object of an object of class combinedGradientForest generated by combinedGradientForest.

...

further arguments passed to or from other methods.

Value

Provides a brief summary of of the number of trees in the forest for the number of species with positive R^2 as well as a list of the important predictor variables. If x is a combinedGradientForest object, this function provides the number of gradientForest objects that were combined.

Author(s)

N. Ellis, CSIRO, Cleveland, Australia. <Nick.Ellis@csiro.au>

References

Ellis, N., Smith, S.J., and Pitcher, C.R. (2012). Gradient Forests: calculating importance gradients on physical predictors. Ecology, 93, 156–168.

See Also

gradientForest, combinedGradientForest

Examples

data(CoMLsimulation)
preds <- colnames(Xsimulation)
specs <- colnames(Ysimulation)
f1 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs, ntree=10)
f1
f2 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs[1:6+6], ntree=10)
f12 <- combinedGradientForest(west=f1,east=f2)

gradientForest documentation built on Aug. 24, 2023, 3:03 p.m.