Say I have a dataframe that is:
y <- c(8,3,1,11,4,7)
I want to get the all possible (15 cases) random data with size 2. I know how to draw randomly for one of them:
But how to get all of them? Because I need to do further data analysis.