scape (version 2.3-2)

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.

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 {
path <- system.file("example/mcmc", package="scape")
proj <- importProj(path)
# }

Run the code above in your browser using DataLab