ec_generate_pa | R Documentation |
Generate random presence/absence matrix
ec_generate_pa(nsit, nspc, probs, ...)
ec_order_pa(x, by = c("both", "site", "species"), decreasing = TRUE)
nsit |
number of site (determine the number of rows). |
nspc |
number of species (determine the number of columns). |
probs |
numeric vector of probabilities presence of species. If there
are less elements than species, then the vector is recycled and if
there are more, the vector is truncated (see |
... |
further arguments passed on to |
x |
a |
by |
dimension along which the |
decreasing |
Should the sort order be increasing or decreasing? see |
ec_order_pa()
: Returns
ec_generate_pa(20, 10, .1)
ec_order_pa(ec_generate_pa(20, 10, .1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.