FLStocks-class {FLCore}R Documentation

Class FLStocks

Description

An FLStocks object is a collection of different FLStock datasets.

Objects from the Class

Objects can be created by calls of the form new("FLStocks", ...) or directly with \code{FLStocks()}

Slots

.Data:
Object of class "list". Holds a variable number of FLStock objects
desc:
A description of the list.

Extends

Class "list", from data part.

Methods

summary
signature(object = "FLStocks"): Print concise summary of the contents of the object

Author(s)

FLR Team

See Also

FLStock-class

Examples

    # Create a new empty stock, giving a name and desc.
    my.ple <- FLStock(name = "plaice", desc = "Just an example...")
    summary(my.ple)
    
    # Create an FLStock with the same dimensions as the FLQuant object catch.
    catch <- FLQuant(array(round(rnorm(120, 5000,500)), dim=c(12,10,1,1,1),
              dimnames=list(age=as.character(1:12), year=as.character(c(1991:2000)),
              unit="all", season="all", area="all")))
    my.stock <- FLStock(name = "My Stock", desc = "Just an example...", iniFLQuant=catch)
    my.stock@catch <- catch
    
    # Colletc both stocks together.
    my.stocks <- FLStocks(my.ple, my.stock)

[Package FLCore version 1.4-4 Index]