Skip to content
Prev 62459 / 398498 Next

subsampling

nicolas.deig at epfl.ch writes:
(Why are you c()'ing a single vector?)
That's not going to work (hint, the values contained in y do not
correspond to their indices).

I'd just do 

split(sample(1:200),rep(1:10,each=20))