| FLStocks-class {FLCore} | R Documentation |
An FLStocks object is a collection of different FLStock datasets.
Objects can be created by calls of the form new("FLStocks", ...) or directly with \code{FLStocks()}
.Data:"list". Holds a variable number of FLStock objectsdesc:
Class "list", from data part.
signature(object = "FLStocks"): Print concise summary of the contents of the objectFLR Team
# 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)