I\'d like to sample a vector x of length 7 with replacement and sample that vector 10 separate times. I\'ve tried the something like the following but can\'t get the result
This is a very convenient way to do this:
replicate(10,sample(x,length(x),replace = TRUE))