Sample stratified indices according to a factor variable
stratSample(f)
f
A vector of the same length as f, containing the resampled indices, stratified according to the levels of f