splitSample builds a training and validation set by randomly sampling
the subjects found within the ExprsArray object. Note that this method
is not truly random. Instead, splitSample iterates through the random sampling
process until it settles on a solution such that both the training and validation set
contain at least one subject for each class label. If this method finds no solution
after 10 iterations, the function will post an error. Set percent.include = 100
to skip random sampling and return a NULL validation set. Additional arguments
(e.g., replace = TRUE) passed along to sample.
splitSample(object, percent.include = 67, ...)An ExprsArray object to split.
Specifies the percent of the total number of subjects to include in the training set.
Returns a list of two ExprsArray objects.