Description Usage Arguments Value Examples
Split a dataframe in two.
1 |
dataframe |
a dataframe to subset. |
p |
the proportion of data to keep in trainset |
seed |
the seed number for repetability (same seed will generate same subset for a given dataframe). |
A list with [1] trainset dataframe, [2] testset dataframe.
1 | splitdf()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.