splitdf: Split a dataframe

Description Usage Arguments Value Examples

Description

Split a dataframe in two.

Usage

1
splitdf(cars, p = 0.5, seed = 95687)

Arguments

dataframe

a dataframe to subset.

p

the proportion of data to keep in trainset

seed

the seed number for repetability (same seed will generate same subset for a given dataframe).

Value

A list with [1] trainset dataframe, [2] testset dataframe.

Examples

1

Mystilivia/SDjoygret documentation built on May 7, 2019, 5:17 p.m.