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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -