split_data: Sampling function for bootstrap

Description Usage Arguments Value

Description

A function to randomly split a data frame into training and test samples.

Usage

1
split_data(.data, .test_rate = 0.1)

Arguments

.data

a data frame

.test_rate

the (approximate) portion of the data allocated to test data

Value

a list of two dataframes, the training and test dataset


michaelquinn32/adventureR documentation built on May 22, 2019, 9:52 p.m.