Learn R Programming

shinyr (version 0.4.2)

dataPartition: Data Partition

Description

Partition data for training and test

Usage

dataPartition(df, train_data_perc)

Value

list of length 2 which contains Train data and Test data

Arguments

df

data.frame which need to be devided into train and test subset

train_data_perc

numeric value between 1 to 100

Author

Jayachandra N

Details

dataPartition

Examples

Run this code
dataPartition(iris, 80)

Run the code above in your browser using DataLab