split_data: Split data into train and test sets.

View source: R/test_fit.R

split_dataR Documentation

Split data into train and test sets.

Description

Split data into train and test sets.

Usage

split_data(data, prop = 0.7)

Arguments

data

A data frame.

prop

The proportion of rows to assign to the training set.

Value

A list with two data frames, train and test.


coursekata documentation built on Sept. 11, 2024, 8:42 p.m.