partition | R Documentation |
Randomly partitions the data (primarly intended to split into "training" and "test" sets) according to the supplied probabilities.
partition(data, prob = c(0.7, 0.3), set.seed = NULL)
data |
an ( |
prob |
a numerical vector in [0, 1]. |
set.seed |
a single value, interpreted as an integer, or NULL. |
a list which includes the data partitions.
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
data(iris)
partition(data = iris, prob = c(0.7, 0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.