train_test: Create training and test df

View source: R/R ez.R

train_testR Documentation

Create training and test df

Description

This function returns a list with two df, which are separated with probability p.

Usage

train_test(df, p)

Arguments

df

Object of type dataframe

p

Value between 0 and 1 that contains the probability of separating the df

Examples


train_test(iris,0.8)

bfernandez2/ezR documentation built on April 4, 2022, 1:54 p.m.