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.
niche_difer2(sp_chr1, sp_chr2, Thres_T)
index D
a matrix (niche categories by environmental variables) for species 1
a matrix (niche categories by environmental variables) for species 2
an integer corresponding to the threshold of minimal abundance in a category for the niche breadth estimation