View source: R/byGridCell_CalcAbundance.R
byGridCell_CalcAbundance | R Documentation |
Function to calculate abundance of individuals by grid cell.
byGridCell_CalcAbundance(dfrs, roms_grid, byStartTime = FALSE, verbose = FALSE)
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 |
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
.
a list of sf datasets, by life stage, with average abundance by grid cell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.