Print an 'evaluation' object

Share:

Description

Pretty prints an object of class 'evaluation'

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.