Learn R Programming

SPARTAAS (version 1.0.0)

overlap: Temporal overlap index

Description

The overlap index is the ratio between internal overlap and total overlap over time. We define the total overlap limit as follows: the minimum of the lower limits of the pair of individuals and the maximum of the upper limits. We define the limit of the internal overlap as follows: the maximum of the lower limits and the minimum of the upper limits.

Usage

overlap(temporal)

Arguments

temporal

A data frame with tree columns: the name of the element, the lower limit and the upper limit.

Value

overlap_matrix

The dissimilarity matrix with for each couple i,j the value of the overlap index.

Details

The lower and upper limits must be number.

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
library(SPARTAAS)

# }

Run the code above in your browser using DataLab