get_biomass_data: Get Biomass Data

View source: R/get_biomass_data.R

get_biomass_dataR Documentation

Get Biomass Data

Description

get_biomass_data can be used to extract biomass data from .rdat model outputs. This can be used to extract data from a single model, multiple models, or calculate the sum of biomass by grouping parameters.

Usage

get_biomass_data(dat, grouping = c("year"), cumulative = FALSE, pounds = TRUE)

Arguments

dat

A list of rdat files containing model outputs.

grouping

Grouping parameters. This determines which groups will be used to sum biomass if cumulative = TRUE. Options include year, mu, species, and model. data_type is a required option and can not be turned off.

cumulative

TRUE of FALSE(default). If TRUE, the sum of biomass will be calculate by grouping. This can work when multiple models are supplied

pounds

TRUE or FALSE. If TRUE, converts from kg's to pounds.

wide

TRUE or FALSE. If TRUE, output the data in wide format

Value

A tibble

Examples

get_biomass_data(list(trout1))
get_biomass_data(list(trout1,trout2),grouping = c("data_type","mu"), cumulative = TRUE)

zac-driscoll/trout.modlR documentation built on March 24, 2022, 10:04 p.m.