Learn R Programming

ggRandomForests (version 1.1.2)

print.gg_interaction: Print a gg_interaction object.

Description

Print a gg_interaction object.

Usage

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

Arguments

x
a gg_interaction object.
...
optional arguments

We use the tble_df command to print gg_interaction objects because they tend to be long (ntree records long).

See Also

rfsrc tbl_df gg_interaction

Examples

Run this code
## ------------------------------------------------------------
## classification example
## ------------------------------------------------------------
## You can build a randomForest
# rfsrc_iris <- rfsrc(Species ~ ., data = iris)
# interaction_iris <- find.interaction(rfsrc_iris)
#
# ... or load a cached randomForestSRC object
data(interaction_iris, package="ggRandomForests")

# Get a data.frame containing minimaldepth measures
gg_dta<- gg_interaction(interaction_iris)
print(gg_dta)

## ------------------------------------------------------------
## regression example
## ------------------------------------------------------------
data(interaction_airq, package="ggRandomForests")

# Get a data.frame containing minimaldepth measures
gg_dta<- gg_interaction(interaction_airq)
print(gg_dta)

Run the code above in your browser using DataLab