r - How to easily create sequentially named vectors from the same data -


i trying generate 100 samples sets population. code currently

sam1<-sample(population, 30, replace = t) sam2<-sample(population, 30, replace = t) sam3<-sample(population, 30, replace = t) 

since sampling repeatedly same data, there easier way create 100 vectors sequentially sam1...sam100 vectors?

try replicate function population vector or list

replicate(n = 100,sample(population, 30, replace = t)) 

Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -