FLSR {FLCore}R Documentation

FLSR

Description

Creates a new FLSR object.

Usage

   FLSR(name = character(0), desc = character(0), model = character(0),
    quant = "quant", ...)

Arguments

name A character string with the name of the stock.
desc A character string to describe the data stored in the object or other information of interest.
model Name of the stock-recruitment relationship used in the model.
quant The name of the first dimension. A character string. Defaults to "quant".
... Other slots of the 'FLSR' class.

Details

If no 'FLQuant' slots are supplied in the call to the constructor 'FLSR()', an 'FLSR' object with dimension '(1,1,1,1,1)' in the 'FLQuant' slots is returned. Otherwise if one of the arguments in the call to the function is an 'FLQuant' slot, an 'FLSR' object which 'FLQuant' slots are of the same dimension of the input 'FLQuant' is returned. If two ore more 'FLQuant' slots are supplied in the call to the function, they must have the same dimension. The slots related to the model fit (i.e. 'params', 'se', 'covar',...) can be supplied in the call to the constructor as well.

Value

FLSR returns an object of class 'FLSR'.

Author(s)

FLR Team

See Also

FLSR-class,

Examples


    flsr <- FLSR()
    flsr <- FLSR(name = "Hake", desc = "An empty 'FLSR' object")

    data(ple4)
    ssb <- ssb(ple4)
    rec <- stock.n(ple4)[1,]

    flsr <- FLSR(name = "Plaice", desc = "Plaice in area IV, data obtained from 'ple4' 'FLSTock' object",
        ssb = ssb)
    flsr <- FLSR(name = "Plaice", desc = "Plaice in area IV, data obtained from 'ple4' 'FLSTock' object",
        ssb = ssb, rec = rec)
    flsr <- FLSR(name = "Plaice", desc = "Plaice in area IV, data obtained from 'ple4' 'FLSTock' object",
        model = "ricker", params = matrix(c(3.7, 3.3e-6,NA),1))

[Package FLCore version 1.4-4 Index]