randpart {apricom}R Documentation

Accessory Function for Sample Splitting

Description

Randomly partition a dataset into a training set and a test set.

Usage

randpart(dataset, fract)

Arguments

dataset

a dataset for splitting.

fract

the proportion of observations to be designated to the training set.

Value

Returns a list containing the training set and test set.

Note

This function is not designed to be called directly, but acts within splitval


[Package apricom version 1.0.0 Index]