FLStocks-class: Class FLStocks

Description Slots Extends Constructor Methods Author(s) See Also Examples

Description

FLStocks is a class that extends list through FLlst but implements a set of features that give a little bit more structure to list objects. The elements of FLStocks must all be of class FLStock. It implements a lock mechanism that, when turned on, does not allow the user to increase or decrease the object length.

Slots

.Data

The data. list.

names

Names of the list elements. character.

desc

Description of the object. character.

lock

Lock mechanism, if turned on the length of the list can not be modified by adding or removing elements. logical.

Extends

FLlst list vector

Constructor

The FLStocks(object) constructor method allows simple creation of new FLStocks with the methods described below.

signature(object=ANY) :

Returns an FLStocks object with the given named elements

signature(object=missing) :

Returns an FLStocks object

signature(object=list) :

Returns an FLStocks object with the provided list as its core

Methods

plot(graphics):

Default plot for FLStocks. Different lines for each stock object are shown in panel panels, corresponding to rec, ssb, catch and harvest. A key argument turns off (FALSE, default) or on (TRUE) a figure key. A new key can also be provided (see key entry in xyplot.

signature(x=FLStocks,y=missing)

Author(s)

The FLR Team

See Also

plot, FLlst, list

Examples

1
2
3
data(ple4)
fls <- FLStocks(sa=ple4, sb=window(ple4, end=1980))
summary(fls)

FLCore documentation built on May 2, 2019, 5:46 p.m.