data_split: Split a data frame into training a test sets

Description Usage Arguments Value

View source: R/exploratory.R

Description

Split a data frame into training a test sets

Usage

1
data_split(tab, frac = 0.5, seed = NULL)

Arguments

tab

The data frame

frac

Fraction of data for training set (will be rounded up)

seed

Random seed

Value

A list with train and test components


snarles/introStatML documentation built on May 30, 2019, 5:05 a.m.