Dear all,

does anyone know how to define the structure of the required samples using
function createDataPartition, meaning proportions of different types of
variable in the partition?
Smth like this for iris data:

createDataPartition(y = c(setosa = .5, virginica = .3, versicolor = .2),
times = 10, p = .7, list = FALSE)

Thanks a lot for your help.

Regards,
Trafim

	[[alternative HTML version deleted]]

