Description Usage Arguments Details Value Examples
Randomly pulls a max of ns
individuals from a max of np
populations and returns a landscape object that could be used for
further simulation, but is usually used for analyses and summary
statistics calculatiuons. If one needs a sample of specific
populations/habitats, then these should be given in the vector pvec
1 |
Rland |
landscape object |
ns |
number samples per population |
np |
number of populations to sample |
pvec |
a vector of populations to sample |
svec |
A vector of the stages sampled from a landscape. This provides good control over which populations and which stages within populations can be sampled. |
This function is intended to provide a lot of flexibility in sampling individuals from a rmetasim landscape
landscape object
1 2 3 4 5 6 | l <- landscape.new.example()
l <- landscape.simulate(l,1)
l.samp <- landscape.sample(l,np=1,ns=24)
landscape.amova.pairwise(l.samp)
l.samp2 <- landscape.sample(l,ns=24,pvec=c(2))
landscape.amova.pairwise(l.samp2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.