Description Usage Arguments Examples
View source: R/random_rotation.R
Create a random split of indices with proportion ptrain in the training set. Also see: generate_testing_row_indices(n, training_rows)
1 | generate_training_row_indices(n, ptrain)
|
n |
numer of data points in total (training + testing) |
ptrain |
percentage of rows in the training set (fraction) |
1 2 | train <- generate_training_row_indices(nrow(df), 0.6)
test <- generate_testing_row_indices(nrow(df), train)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.