FLFleets-class {FLCore}R Documentation

Class FLFleets

Description

FLFleets is a collection of different FLFleet objects

Objects from the Class

Objects can be created by calls of the form new("FLFleets", ...). ~~ describe objects here ~~

Slots

.Data:
A list with FLFleet objects
desc:
A description of the object

Extends

Class "list".

Methods

summary
signature(object = "FLFleets"): Prints a summary of the object contents
as.FLStock
signature(obj = "FLFleets"): Creates a new FLStock based upon the input FLFleet. name and gear identify the catches inside the FLFleets object to be used by comparing to name and gear slot of each FLCatch. If more than one FlCatch matches the stock specified, the the data are coerced by summing the numbers and catch, discrads and landings. landings.wt, catch.wt and discards.wt are averaged weighing by the numbers.
.

Author(s)

FLR Team

See Also

FLFleet-class, is.FLFleets

Examples

    # Create an empty FLFleet object from two empty FLFleet obejects.
   iniFLQuantCatch = FLQuant(160, dim = c(8,20,1,1,1))
   iniFLQuant = FLQuant(10, dim = c(1,20,1,1,1))
   my.fleets <-FLFleets() 
   my.fleets[[1]] <- FLFleet(iniFLQuantCatch=iniFLQuantCatch, iniFLQuant=iniFLQuant, name = "Otter trawl", desc = "Just an example...")
   my.fleets[[2]] <- FLFleet(iniFLQuantCatch=iniFLQuantCatch, iniFLQuant=iniFLQuant, name = "Trawl", desc = "Just an example...")

   is.FLFleets(my.fleets)

[Package FLCore version 1.4-3 Index]