[R] Resampling

2013-08-01 Thread Rita Gamito
Thank you! I have used the replicate function. In fact, I had just found the solution when I received your answers. Best regards, Rita _ Rita Gamito Centro de Oceanografia Faculdade de Ciências, Universidade de Lisboa Campo Grande, 1749-016 Lisboa, Portugal

[R] resampling

2013-07-31 Thread Rita Gamito
Could anyone tell me how,from a pool of 1002 observations (one variable), can I resample 1000 samples of 20 observations? And then calculate the mean and standard deviation between 2, 3, 4, ..., 1000 samples and plot them? Thank you! _ Rita Gamito Centro de