split_df: Split Data Frame

Description Usage Arguments Value

Description

Function to randomly split a data frame into two sections, potentially for training and validation As R will only allow a single item to be returned by a functio use

Usage

1
split_df(dataframe, seed = NULL)

Arguments

dataframe

The dataframe to be split

seed

Option to set seet (random number generator) for reproducability, defaults to null

Value

A list of training and validation dataframes, extract usiing training <- input$trainset or input$testset


Tomhigg/zebu documentation built on May 9, 2019, 5:11 p.m.