disparity_index: Disparity index

View source: R/disparity_index.R

disparity_indexR Documentation

Disparity index

Description

This function calculates the continuous disparity index as described in Fernández-Martínez et al. (2018).

Usage

disparity_index(lightVar, na_rm = TRUE, as_df = TRUE)

Arguments

lightVar

Numeric vector containing the light data.

na_rm

Logical. Should missing values be removed? Defaults to TRUE.

as_df

Logical. Should the output be returned as a data frame? Defaults to TRUE.

Value

Data frame or numeric vector.

References

Fernández-Martínez, M., Vicca, S., Janssens, I. A., Carnicer, J., Martín-Vide, J., & Peñuelas, J. (2018). The consecutive disparity index, D: A measure of temporal variability in ecological studies. Ecosphere, 9(12), e02527. https://doi.org/10.1002/ecs2.2527


steffenhartmeyer/lightdosimetry documentation built on Jan. 29, 2024, 12:48 p.m.