train_test_split: Makes a train test split. It Also makes a suffle by default.

Usage Arguments

View source: R/train_test_split.R

Usage

1
train_test_split(df, train_size = 0.7, shuffle = TRUE)

Arguments

df

dataframe to split.

train_size

split percent. Is percent of rows into train set after split the input dataframe. Speficy it as a percent between 0 and 1. i.e. .7 is 70

\item

shuffleApplies a random order befoe split the dataframe. TRUE by default.

Makes a train test split. It Also makes a suffle by default.

train_set, test_set %<-% train_test_split(df, .7)


adrianmarino/commons documentation built on Dec. 18, 2021, 10:30 p.m.