byGridCell_CalcAbundance: Calculate abundance of individuals by grid cell

View source: R/byGridCell_CalcAbundance.R

byGridCell_CalcAbundanceR Documentation

Calculate abundance of individuals by grid cell

Description

Function to calculate abundance of individuals by grid cell.

Usage

byGridCell_CalcAbundance(dfrs, roms_grid, byStartTime = FALSE, verbose = FALSE)

Arguments

dfrs

- list of dataframes (or tibbles or sf datasets), by typeName, with DisMELS IBM results

roms_grid

- sf dataset representing a roms grid, with all grid cells of interest

byStartTime

- flag to average by startTime

verbose

- flag to print diagnostic info

Details

Uses packages sqldf, reshape2.The number of unique individuals that occupied a grid cell is reported in output dataframe columns ?_indivs. The abundance (averaged over time for each individual, then summed over unique individuals) is reported in output dataframe columns ??_abundance.

Calculations can be limited to a subset of grid cells by providing only their IDs (as opposed to all IDs) in roms_grid_IDs.

Value

a list of sf datasets, by life stage, with average abundance by grid cell


wStockhausen/rDisMELS documentation built on March 27, 2022, 1 a.m.