avg_density: Calculates Average Fish Density and bootstrap confidence...

View source: R/avg_density.R

avg_densityR Documentation

Calculates Average Fish Density and bootstrap confidence intervals

Description

Calculates Fish Densities and optionally bootstrap confidence intervals. Returns a dataframe or tibble of densities for each species (depending on class input as counts) If iter and conf are not NULL than row order will be lower bound, calculated average, upper bound If iter isn not NULL but conf is NULL, than the mean from each bootstrap sample will be returned

Usage

avg_density(counts, area, iter = NULL, conf = NULL)

Arguments

counts

dataframe or tibble of counts (can also be a vector if one species)

area

vector of areas corresponding to observations (rows) in counts

iter

optional number of iterations for creating confidence intervals

conf

optional confidence level (0-1) (If null will return average density for each bootstrap sample)


ailich/mytools documentation built on Jan. 7, 2023, 11:16 a.m.