Description Usage Arguments Value Examples
prepares table of occurrence records or precence-absence matrix for use in bbgdm
.
1 2 3 4 5 6 | table2pam(x, site.id = "site.id", sp.id = "sp.id", abund = FALSE,
abund.col = " No.of.specimens", siteXsp = TRUE)
pam2dissim(y, dism_metric = "number_non_shared")
simulate_covariates(y, n)
|
x |
data to be imported into R. A table of species occurrences and site records. |
site.id |
Name of column that contains site names /IDs. |
sp.id |
Name of column that contains species information/ID. |
abund |
LOGICAL if TRUE calculate abundances. |
abund.col |
Name of column that contains abundance/counts data. |
siteXsp |
LOGICAL if TRUE Returns sites as rows, sites as columns, if FALSE returns species as rows and sites as cols. |
y |
presence-absence matrix of site x sp. |
dism_metric |
If "bray_curtis" calculates Bray-Curtis dissimilarity, if "number_non_shared " returns number of shared species at site_ij which can be used in a binomial model for GDM. |
n |
number of covariates to simulate |
A species by sites matrix for use in dissimilarity calculation
dism a vector of dissimilarities or count of shared species calcualted for the upper-triangle of a dissimilarity matrix.
1 2 | x <- matrix(rbinom(16,1,.6),4,4) #toy presence absence matrix
covr <- simulate_covariates(x,6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.