Skip to contents

Applies the sorensen diversity index calculation to variable diversity dataset

Usage

apply_sorensen_calc(data)

Arguments

data

A variable diversity dataset with columns for each unique variable used in all analyses. Values are NA if the analysis did not use that variable, and take the value of the variable as a character string if the analysis did use that variable. Each unique analysis is a row.

Value

A tibble containing the variables id_col, mean_diversity_index and num_variables