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.

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)
# }