powered by
Partition data for training and test
dataPartition(df, train_data_perc)
data.frame which need to be devided into train and test subset
numeric value between 1 to 100
list of length 2 which contains Train data and Test data
dataPartition
# NOT RUN { dataPartition(iris, 80) # }
Run the code above in your browser using DataLab