Compute temporal betadiversity.
Usage
ec_temporal_betadiversity(x1, x2, methods = "bc", site_names = NULL)
Arguments
- x1
a pa
object representing a presence-absence matrix at time 1.
- x2
a pa
object representing a presence-absence matrix at time 2.
- methods
a vector of two-letters strings describing the methods te be used.
Vaues should be taken among ra
, bc
, ja
, wi
(see details).
- site_names
string vector giving the names of the sites.
Value
A data frame with desired output as columns.
Details
Currently ra
stands for raw and returns the number of occurrence.
Additionnalnnal values are
bc
: Bray-Curtis index,
wi
: Wishart index,
ja
: Jaccard index.
Examples
ec_temporal_betadiversity(rbind(c(1, 0), c(1, 1)), rbind(c(0, 1), c(1, 1)))
#> site bc
#> 1 1 1
#> 2 2 0