print.evaluation {crtests}R Documentation

Print an 'evaluation' object

Description

Pretty prints an object of class 'evaluation'

Usage

## S3 method for class 'evaluation'
print(x, digits = max(3, getOption("digits") - 4), ...)

Arguments

x

Object to print

digits

Numeric. Number of digits to print. Defaults to max(3, getOption("digits")-4)

...

Further arguments to print.evaluation

Details

Prints the object to look like a table

Examples

data(iris)
# A classification test
test <- createtest(data = iris, 
                  dependent = "Species",
                  problem = "classification",
                  method = "randomForest",
                  name = "An example classification test",
                  train_index = sample(150, 100)
)
## Not run: 
# Run the test. The result is an object of class "evaluation"
evaluation <- runtest(test) 
print(evaluation)

## End(Not run)

[Package crtests version 0.2.1 Index]