Learn R Programming

DivInsight (version 0.1.0)

generate_stats: Generate Diversity Index Statistics

Description

Calculates diversity index values for each site in a clusterised object.

Usage

generate_stats(clusterised_object)

Value

A dataframe where each row pertains to a site and each column has higher taxa labels, time & location data, as well as diversity index values.

Arguments

clusterised_object

An object created by the clusterise_sites function.

Examples

Run this code
# generate species count tables with a minimum of 30 individuals from 5 species
Colombia_Caquetá_dataframe <- subset(Colombia, stateProvince == "Caquetá")

clusterised_Caquetá <- clusterise_sites(dataframe = Colombia_Caquetá_dataframe,
                                       cluster_min_length = 30,
                                       group_radius = 20000
)

stats_Caquetá <- generate_stats(clusterised_Caquetá)

head(stats_Caquetá)

Run the code above in your browser using DataLab