train_test | R Documentation |
This function returns a list with two df, which are separated with probability p.
train_test(df, p)
df |
Object of type dataframe |
p |
Value between 0 and 1 that contains the probability of separating the df |
train_test(iris,0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.