title: Generate sets for cross-validation
body: <p>How to split automatically a matrix using R for 5-fold cross-validation?
  I actually want to generate the 5 sets of (test_matrix_indices, train matrix_indices).</p>