I’d like to sample the vector “y” repeatedly. In this dummy dataset, I’d
like to sample (and store) it 1, 2, and 3 times.



Is there a straightforward way to do this without using a “for” loop?



x <- c(1 :3)



y <- c(1:10)



(run.sample <- sample (y, x))





Thanks very much,

James Hudson

	[[alternative HTML version deleted]]

