scape (version 2.2-0)

importProj: Import Coleraine MCMC Projections

Description

Import Coleraine MCMC traces for spawning biomass and catch, projected into the near future.

Usage

importProj(dir, coda=FALSE, quiet=TRUE)

Arguments

dir
directory containing the files ‘strategy.out’, ‘projspbm.pst’ and ‘procatch.pst’.
coda
whether data frames should be coerced to class mcmc using the coda package.
quiet
whether to report progress while parsing files in directory.

Value

A list containing:
B
biomass by catch policy and year
Y
catch by catch policy and year
as lists of data frames, or mcmc objects if coda=TRUE.

References

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. Available at http://fish.washington.edu/research/coleraine/pdf/coleraine.pdf.

See Also

read.table, readLines, and scan import any data.

importMCMC and importProj import Coleraine MCMC results.

xproj was created using importProj.

scape-package gives an overview of the package.

Examples

Run this code
## Not run: 
# dir <- system.file("example/mcmc", package="scape")
# xproj <- importProj(dir)
# ## End(Not run)

Run the code above in your browser using DataLab