View source: R/load_diet_comp.R
load_diet_comp | R Documentation |
diet_check.txt
Imports the diet_check.txt
output file from an Atlantis run
and converts the file from wide format to long, where there are five
columns: age class, time, diet composition, predator species, and
prey species.
load_diet_comp(dir = getwd(), file_diet, fgs)
dir |
The directory of the atlantis model output, where the
default is |
file_diet |
A character value, specifying the file name of the
|
fgs |
A data frame created by |
toutinc |
The periodicity specified for the output of the Atlantis
model. The value can either be specified manually or read in from the
|
Returns a data frame of the data to be exported to the AtlantisOM list object. The atoutput column is diet proportion and there is an extra column identifying the prey that makes up that proportion of species (predator) diet. At present not set up for multiple stocks; function will stop.
Kelli Faye Johnson
Other load functions:
load_agebioind()
,
load_bioind()
,
load_biolprm()
,
load_boxarea()
,
load_box()
,
load_bps()
,
load_catch()
,
load_detailed_diet_comp()
,
load_fgs()
,
load_fisheries()
,
load_meta()
,
load_nc_annage()
,
load_nc_catchtons()
,
load_nc()
,
load_runprm()
,
load_yoy()
d <- system.file("extdata", "SETAS_Example", package = "atlantisom")
file_diet <- grep("DietCheck", dir(d), value = TRUE)
fgs <- load_fgs(dir = d, "Functional_groups.csv")
temp <- load_diet_comp(dir = d, file_diet = file_diet, fgs = fgs)
rm(temp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.