I have a training dataset that consists of 60,000 observations that I want to create 9 subset training sets from. I want to sample randomly without replacement; I need 3 datasets of 500 observations, 3 datasets of 1,000 observations, and 3 datasets of 2,000 observations.

[![enter image description here](https://i.stack.imgur.com/OxCFh.png)](https://i.stack.imgur.com/OxCFh.png)

How can I do this using sample() in R?