View source: R/data_partition.R
dataPartition | R Documentation |
Partition data for training and test
dataPartition(df, train_data_perc)
df |
data.frame which need to be devided into train and test subset |
train_data_perc |
numeric value between 1 to 100 |
dataPartition
list of length 2 which contains Train data and Test data
Jayachandra N
dataPartition(iris, 80)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.