recovered: recovered

recoveredR Documentation

recovered

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

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

## Not run: 
   harvest=rlnorm(20)
   stock  =rlnorm(20)
   recovered(stock,harvest)
## End(Not run)

laurieKell/kobe documentation built on Sept. 9, 2023, 9:47 p.m.