Map an object x into equal (or nearly equal) size folds.
If x is a vector, a matching vector of FoldIDs is returned.
If x is a data.table, a list of partitions of x is returned.
If x is a vector then TRUE or FALSE indicating whether x's split the class's of x proportionally. If x
is a data.table then stratified should be FALSE or the name of a column in x on which to perform stratification.
seed
Random number seed
Details
Convenient method for mapping an object into equal size folds, potentially with stratification