ec_temporal_betadiversity: Compute temporal betadiversity

View source: R/ec_temporal_betadiversity.R

ec_temporal_betadiversityR Documentation

Compute temporal betadiversity

Description

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.

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.

Value

A data frame with desired output as columns.

Examples

ec_temporal_betadiversity(rbind(c(1, 0), c(1, 1)), rbind(c(0, 1), c(1, 1)))


KevCaz/ecoocc documentation built on May 24, 2023, 1:43 p.m.