Divide dataset into data sets

Hi, you could use the split() function.

Also, next time, make a reproducible example. Yours isn't.