print.evaluation: Print an 'evaluation' object

Description Usage Arguments Details Examples

View source: R/evaluate_helpers.R

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)


crtests documentation built on May 19, 2017, 9:21 a.m.
Search within the crtests package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.