kobe2box: Reads pro2box projection results and returns stock and...

Description Usage Arguments See Also Examples

View source: R/kobe-2box.R

Description

Reads in text files generated by pro2box, a stock assessment projection program returns time series or summaries of B:BMSY and F:FMSY. what specifies how data are returned, i.e. sims bootstraps for all years; trks percentiles given by prob; year selected year(s) given by pts; smRY probabilities of being in the kobe quadrants and; wrms bootstraps selected at random. If of length 1 then a data.frame is returned, if >1 then a list of data.frames

Usage

1
2
3
  kobe2box(object,proxy=c("fmsy","fmax","f0.1","f20","f30","f40","f90max","f75max")[3], 
                  what =c("sims","trks","pts","smry","wrms")[1], 
                  prob=c(0.75,0.5,0.25),year=NULL,nwrms=10)

Arguments

object

character; directory in which pro2box projection files are found.

proxy

character; specifies the form of data returned.

what

character; specifies the form of data returned.

prob

numeric; probabilities with values in [0,1] for percentiles returned if what["trks"] selected.

year

numeric; year(s) for points if what["pts"] selected.

nwrms

numeric; number of trajectories sampled at random to return if what["wrms"] selected.

See Also

kobeAspic,kobeMFCL,kobeSS

Examples

1
2
3
4
## Not run: 
kobe2box("bft")

## End(Not run)

kobe documentation built on May 30, 2017, 12:15 a.m.