View source: R/read_savedsurvs.R
read_savedsurvs | R Documentation |
A function to read survey index and composition data saved as .rds into
an R object with the same structure as the output of om_species
or om_comps
.
Users must enter the path where the survey output files are stored and the type of survey
output file to be read in.
read_savedsurvs(dir, type)
dir |
The directory of the atlantis model output, where the
default is |
type |
A variable passed to
|
om_species
, om_comps
, and om_diet
allow for multiple surveys.
Users must define a survey.name in each survey config file which is used to name the file
that is output by each survey function, and is then read back in to name list
output for each survey in the saved .rds file.
Sarah Gaichas
Other read functions:
read_savedfisheries()
## Not run:
# assuming d.name is the path where atlantisom output is stored
survObsBiom <- read_savedsurvs(d.name, 'survB') # survey biomass index
age_comp_data <- read_savedsurvs(d.name, 'survAge') # survey age class composition
len_comp_data <- read_savedsurvs(d.name, 'survLen') # survey length composition
wtage <- read_savedsurvs(d.name, 'survWtage') # survey weight at age class
annage_comp_data <- read_savedsurvs(d.name, 'survAnnAge') # survey annual age composition
annage_wtage <- read_savedsurvs(d.name, 'survAnnWtage') # survey weight at annual age
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.