Load information for SSB and Recruits from an Atlantis model run.

load_rec(yoy, ssb, prm_biol)

Arguments

yoy

Character string giving the connection of the YOY file. The filename usually contains outputYOY and ends in .txt".

ssb

Character string giving the connection of the YOY file. The filename usually contains outputSSB and ends in .txt".

prm_biol

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

Value

Dataframe with information about ssb in tonnes and recruits in thousands.

See also

Examples

d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools") yoy <- file.path(d, "outputSETASYOY.txt") ssb <- file.path(d, "outputSETASSSB.txt") prm_biol <- file.path(d, "VMPA_setas_biol_fishing_Trunk.prm") load_rec(yoy, ssb, prm_biol)
#> species time ssb rec #> 1 FPS 0.0 0.0000 103637.2850 #> 2 FPS 365.0 1319.6907 61643.4168 #> 3 FPS 730.0 991.9906 2040.7086 #> 4 FPS 1094.5 889.2720 799.4379 #> 5 FVS 0.0 0.0000 330282.8031 #> 6 FVS 365.0 6009.9847 717322.1254 #> 7 FVS 730.0 2365.1658 67151.2162 #> 8 FVS 1094.5 1747.8319 50751.0497