View source: R/landscape.sample.R
landscape.sample | R Documentation |
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
landscape.sample(rland, np = NULL, ns = NULL, pvec = NULL)
rland |
landscape object |
np |
number populations |
ns |
number samples per population |
pvec |
a vector of populations to sample. Should be numbers from 1 to number of habitats |
landscape object
l <- landscape.new.example() l <- landscape.simulate(l,1) l.samp <- landscape.sample(l,np=3,ns=24) landscape.amova.pairwise(l.samp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.