niche_difer2: Nested function for niche overlapping estimation with...

View source: R/niche_difer2.R

niche_difer2R Documentation

Nested function for niche overlapping estimation with 'combina_niche3.R' and 'niche_differ_sp.R'.

Description

Estimate the niche overlapping (index D) between two species. Assume that the niche is rectangular. Columns (i.e. environmental variables) in 'spe_chr1' and 'sp_chr2' have to be the same.

Usage

niche_difer2(sp_chr1, sp_chr2, Thres_T)

Arguments

sp_chr1

a matrix (niche categories by environmental variables) for species 1

sp_chr2

a matrix (niche categories by environmental variables) for species 2

Thres_T

an integer corresponding to the threshold of minimal abundance in a category for the niche breadth estimation

Value

index D


specieschrom documentation built on Oct. 17, 2022, 5:11 p.m.