Learn R Programming

ggRandomForests (version 3.1.2)

print.gg: Print methods for gg_* data objects

Description

Each print.gg_*() method prints a one-line header: the class label and, where the forest recorded it, provenance (source package, family, ntree, n). It returns the object invisibly, so print() sits cleanly in a pipe.

Usage

# S3 method for gg_error
print(x, ...)

# S3 method for gg_vimp print(x, ...)

# S3 method for gg_rfsrc print(x, ...)

# S3 method for gg_variable print(x, ...)

# S3 method for gg_partial print(x, ...)

# S3 method for gg_partial_rfsrc print(x, ...)

# S3 method for gg_partialpro print(x, ...)

# S3 method for gg_partial_varpro print(x, ...)

# S3 method for gg_roc print(x, ...)

# S3 method for gg_survival print(x, ...)

# S3 method for gg_brier print(x, ...)

# S3 method for gg_udependent print(x, ...)

# S3 method for summary.gg_udependent print(x, ...)

# S3 method for gg_varpro print(x, ...)

# S3 method for gg_isopro print(x, ...)

# S3 method for gg_beta_varpro print(x, ...)

# S3 method for gg_ivarpro print(x, ...)

Value

The object x, invisibly.

Arguments

x

A gg_* data object.

...

Not currently used.

Details

To see the rows themselves, use head(); for per-class diagnostics, use summary.gg.

See Also

summary.gg, autoplot.gg

Examples

Run this code
set.seed(42)
airq <- na.omit(airquality)
rf <- randomForestSRC::rfsrc(Ozone ~ ., data = airq, ntree = 50)
print(gg_error(rf))
print(gg_vimp(rf))

Run the code above in your browser using DataLab