prepareRECA: Prepare data for RECA

Description Usage Arguments Details

Description

Convert data to exported from stox to eca format. Save results to project data 'prepareRECA'

Usage

1
2
3
prepareRECA(projectName, resultdir = NULL, minage = 1, maxage = 20,
  delta.age = 0.001, maxlength = NULL, hatchDaySlashMonth = "01/01",
  temporalresolution = 92, overwrite = T)

Arguments

projectName

name of stox project

resultdir

location where R-ECA will store temporal files. Defaults (if null) to a subdirectory of getProjectPaths(projectName)$RDataDir called 'reca' whcih will be created if it does not already exist

minage

see specification for GlobalParameters in eca.estimate.

maxage

see specification for GlobalParameters in eca.estimate

delta.age

see specification for GlobalParameters in eca.estimate

maxlength

maximum length of fish in the data set in cm. If null the value will be extracted from the data.

hatchDaySlashMonth

reference day for assumed spawning time of fish, formatted as day / month. Used to estimate fractional age of fish.

temporalresolution

temporal resolution for the aggregated landings in days (used to set midSeason the Landings object for eca.predict)

overwrite

logical if true, projectData for prepareRECA and runRECA will be nulled before running, and resultdir will be cleaned of any existing output files located in subdirectories cfiles and resfiles.

Details

Most parameters to this funciton are set as named members of a list which is passed as argument GlobalParameters to eca.estimate The parameters minage and maxage define the range of ages that are considered possible in the model. Because R-ECA integrates weight and length measurements, and allows for modelling errors in age determination, predicted ages might fall outside the age range in samples. minage and maxage should be set with this in mind.


Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.