dataSplit: Split dataset into train set and test set (for hold-out)

Description Usage Arguments Examples

View source: R/utils.R

Description

Split dataset into train set and test set (for hold-out)

Usage

1
dataSplit(dataset, test.ratio = 0.1)

Arguments

dataset

a data.frame or a matrix

test.ratio

a numelic. Ratio of test data, must be (0, 1).

Examples

1
2
x <- dataSplit(1:10, test.ratio = 0.3)
x <- dataSplit(mtcars, test.ratio = 0.3)

katokohaku/featureTweakR documentation built on May 17, 2019, 11:17 p.m.