Import Coleraine model results from .res file, and rearrange
into a standard format suitable for plotting.
importCol(res.file, Dev=FALSE, CPUE=FALSE, Survey=FALSE, CAc=FALSE,
CAs=FALSE, CLc=FALSE, CLs=FALSE, LA=FALSE, quiet=TRUE)A list of class scape containing at least N, B,
and Sel. The other elements may or may not be included in the
list, depending on how importCol was called:
predicted numbers at age
predicted biomass, recruitment, and observed landings (year things)
predicted selectivity and observed maturity (age things)
predicted recruitment deviates from the stock-recruitment curve
commercial and survey abundance index and fit
commercial and survey C@A (catch at age) and fit
commercial and survey C@L (catch at length) and fit
observed L@A and fit
name of Coleraine model results file to import.
whether recruitment deviates were estimated in model.
whether model was fitted to catch-per-unit-effort data.
whether model was fitted to survey abundance index data.
whether model was fitted to commercial catch-at-age data.
whether model was fitted to survey catch-at-age data.
whether model was fitted to commercial catch-at-length data.
whether model was fitted to survey catch-at-length data.
whether model was fitted to length-at-age data.
whether to report progress while parsing file.
Hilborn, R., Maunder, M., Parma, A., Ernst, B., Payne, J., and Starr, P. (2003). Coleraine: A generalized age-structured stock assessment model. User's manual version 2.0. University of Washington Report SAFS-UW-0116.
read.table, readLines, and
scan import any data.
x.cod, x.ling, x.oreo, and
x.sbw were created using importCol.
importADCAM imports ADCAM model results.
scape-package gives an overview of the package.
path <- system.file("example/cod.res", package="scape")
cod <- importCol(path, Dev=TRUE, Survey=TRUE, CAc=TRUE, CAs=TRUE)
Run the code above in your browser using DataLab