sampled_index: Function to automate the rank trends by taxanomic group

Description Usage Arguments Value

View source: R/tax_rank_group.R

Description

This function generates confidence intervals for ranks by taxanomic groups by resampling species within a given group at each time point.

Usage

1
sampled_index(wt_data, tax_group, wts_col, yr_col, nreps = 1000)

Arguments

wt_data

input dataframe of species weighted ranks

tax_group

name of column that contains grouping variable e.g. "taxonomic group"

wts_col

name of column with numeric weight values (e.g. "wts_col")

yr_col

name of column that specifies assessment (e.g. "year")

nreps

number of times to subsample species weights (default = 1000)

Value

a dataframe containing mean, upper and lower confidence interval for samples conservation status index


bcgov/ranktrends documentation built on Dec. 20, 2020, 7:18 a.m.