recovered: recovered

Description Usage Arguments Value Examples

View source: R/kobe-funcs.R

Description

Has the stock recovered yet? i.e. stock>=1 and harvest<=1 in the current or an earlier time step. In other words has it been in the green Kobe quadrant.

Usage

1
recovered(stock, harvest)

Arguments

stock

a vector holding a time series

harvest

a vector holding a time series

Value

a logical indicating a recovered stock

Examples

1
2
3
4
5
## Not run: 
   harvest=rlnorm(20)
   stock  =rlnorm(20)
   recovered(stock,harvest)
## End(Not run)

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