Split a dataset into training and testing sets, balancing a factor
When performing cross-validation on a dataset, it often becomes necessary to split the data into training and test sets that are balanced for a certain binary outcome. This function implements such a balanced split.
A factor that should be balnced between the two subsets.
A number between 0 and 1 indicating the fraction of the dataset to be used for training.
Stuff should go here
Returns a logical vector with length equal to the length of
fac. TRUE values designate samples selected for the training
Kevin R. Coombes <firstname.lastname@example.org>
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.