Learn R Programming

crtests (version 0.2.1)

print.evaluation: Print an 'evaluation' object

Description

Pretty prints an object of class 'evaluation'

Usage

"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

Run this code
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)

Run the code above in your browser using DataLab