Hello, I am trying to create sample size from the dataset that I have got, the dataset that I am using is the following; https://www.kaggle.com/yersever/500-person-gender-height-weight-bodymassindex, but I have removed the index and the height categories as they are not needed.

I am trying to create a random sample size of 10 and 5 and the sample should be ran 1000 times for each sample size, I am then trying to get the sample mean for each of those sample sizes but I am very confused on how to do it as this is my first week learning R Studio

Any help would be appreciated