calcDepend: Calculate species dependencies (i.e. conditional...

Description Usage Arguments Examples

View source: R/calcDepend.R

Description

Calculates the species dependencies for a given set of species abundances as the conditional probability of two species.

Usage

1
calcDepend(a, b)

Arguments

a

The abundance of species "a".

b

The abundance of species "b".

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (a, b) 
{
    return(length(a[(a + b) == 2])/sum(a))
  }

ECGen/ComGenR documentation built on July 23, 2021, 11:44 p.m.