custom.subsets function

Separating data into custom subsets.