print.dataset: Print a training/test split

print.datasetR Documentation

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 class 'dataset'
print(x, ...)

Arguments

x

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

...

Other parameters.

See Also

dataset-class, splitdata

Examples

require (datasets)
data (iris)
splitdata (iris, 5)

fdm2id documentation built on Sept. 4, 2026, 5:07 p.m.