Does the following help:
> set.seed(1)
> pop <- 1:100
> s1 <- sample(pop, 5)
> s1. <- pop[!(pop %in% s1)]
> s2 <- sample(s1., 5)
> s1
[1] 27 37 57 89 20
> s2
[1] 91 94 66 62 6
>
spencer graves
emmadigonnet at aol.com wrote:
>
> Hello,
> I have a problem to treat my data. I seek the orders being able to treat
> under sampling: I have X samples divided into 10. How to take, in a random
way,
> under sample from the 1st sample, and in addition, one under sample of the
> 2nd sample, and so on to X to calculate the average taxonomic richness of
the
> selection.
> Then I would like to know how to renew the experiment by taking this time
2,
> 3... X under samples at the same time, always in a random way.
> Thank you in advance for your answer.
> Manue.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
--
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA
spencer.graves at pdf.com
www.pdf.com <http://www.pdf.com>
Tel: 408-938-4420
Fax: 408-280-7915