renkonen: Renkonen's Similarity index with bootstrap

View source: R/renkonen.R

renkonenR Documentation

Renkonen's Similarity index with bootstrap

Description

this function returns both single or bootstrap Renkonen's index for a data frame of counting input. It uses a internal bootstrap function to calculate N matrix. Users might then extract confidence intervals or standard deviation.

Usage

renkonen(df, boot)

Arguments

df

a data frame with sampling sites as columns, species as rows and abundances as values

boot

an integer with bootstrap replications desired. The default is 0, but something around 1000 seems to be suitable in most cases.

Details

This function is the main envelope of Renkonen's index calculations to the users interact with. implements a internal bootstrap replication loop designed to be as fast as possible in a high level language. Remember, bootstrap process are time consuming and the total time will depend on your data set.

Author(s)

Wilson Frantine-Silva <wilsonfrantine@gmail.com>

Examples

df <- simulate_data(5,10)
S <- renkonen(df)
head(S)

wilsonfrantine/R4eco documentation built on Jan. 30, 2024, 4:55 p.m.