prm_to_df: Extract parameters from the biological parameter file and...

Description Usage Arguments Value Examples

View source: R/prm-to-df.R

Description

Extract parameters from the biological parameter file and transform them to a dataframe.

Usage

1
2
3
prm_to_df(prm_biol, fgs, group, parameter)

prm_to_df_ages(prm_biol, fgs, group, parameter)

Arguments

prm_biol

Character string giving the connection to the biological parameterfile. The filename usually contains biol_fishing and does end in .prm.

fgs

Character string giving the connection to the functional groups file. The filename usually contains Groups and does end in .csv.

group

Character vector giving the functional Groups to extract.

parameter

Character vector giving the parameters to extract.

Value

Dataframe with columns 'species' and as many columns as parameters.

Examples

1
2
3
4
5
6
7
8
d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools")
prm_biol <- file.path(d, "VMPA_setas_biol_fishing_Trunk.prm")
fgs <- file.path(d, "SETasGroupsDem_NoCep.csv")
group <- c("FPS", "FVS")
parameter <- c("mum", "C")

prm_to_df_ages(prm_biol, fgs, group, parameter)
prm_to_df(prm_biol, fgs, group, parameter)

alketh/atlantistools documentation built on Oct. 30, 2021, 5:46 a.m.