partition_factor function

Partition the data for a (non-spatial) leave-one-factor-out cross-validation based on a given, fixed partitioning