fwdWindow: fwdWindow

fwdWindow,FLStock,FLBRP-methodR Documentation

fwdWindow

Description

Extends an object representing a fish population for projecting into the future using the assumed equilibirum values used in the calculation of reference points

Usage

## S4 method for signature 'FLStock,FLBRP'
fwdWindow(x, y, end = dims(x)$maxyear)

Arguments

x

The population object, for example of class FLStock

y

The reference points object, of class FLBRP

end

Final year of the extended object, always interpreted as a character

Details

slts <- c("stock.wt", "landings.wt", "discards.wt", "catch.wt",
   "m", "mat", "harvest.spwn", "m.spwn")

Value

An object of the same class a x, extended to year=end

Examples

data(ple4)

# Create the FLSR and FLBRP objects
psr <- fmle(as.FLSR(ple4, model="bevholt"), control=list(trace=0))
prp <- brp(FLBRP(ple4, sr=psr))

res <- fwdWindow(ple4, prp, end=dims(ple4)$maxyear + 10)

flr/FLBRP documentation built on April 8, 2024, 3:18 a.m.