Learn R Programming

fdm2id (version 1.0.1)

print.dataset: Print a training/test split

Description

Prints the sizes of the two parts of a split and the target they share.

Usage

# S3 method for dataset
print(x, ...)

Arguments

x

The split (object of class dataset-class, created by splitdata).

...

Other parameters.

See Also

dataset-class, splitdata

Examples

Run this code
require (datasets)
data (iris)
splitdata (iris, 5)

Run the code above in your browser using DataLab