| FLStock-class {FLCore} | R Documentation |
Data representation for a stock object. The FLStock object contains the available information
for a fish stock, usually derived from a national or international sampling program, that will be used
for conducting an assessment. Typically this will include information on total catches. In addition
information on catch numbers, catch weights, maturity, natural mortality etc. may be provided.
The FLStock object also contains the slots stock, stock.n and harvest to hold information
resulting from an analytical assessment.
FLQuant) Total catch weight by yearFLQuant) Catch numbers by quant and yearFLQuant) Catch weights by quant and yearFLQuant) Total discards weight by yearFLQuant) Discard numbers by quant and yearFLQuant) Discard weights by quant and yearFLQuant) Total landings weight by yearFLQuant) Landing numbers by quant and yearFLQuant) Landing weights by quant and yearFLQuant) Total stock weight by yearFLQuant) Stock numbers by quant and yearFLQuant) Stock weights by quant and yearFLQuant) Natural mortality by quant and yearFLQuant) Proportion mature by quant and yearFLQuant) Harvest rate or fishing mortality by quant and year. The units of the FLQuant should be set to 'harvest' or 'f' accordinglyFLQuant) Proportion of harvest/fishing mortality before spawning by quant and yearFLQuant) Proportion of natural mortality before spawning by quant and yearcharacter) Name of the stockcharacter) Description of stocknumeric) Named vector containing the dimensions of the stock object signature(x=FLStock,i=ANY,j=ANY,drop=missing) signature(x=FLStock,i=ANY,j=ANY,value=missing) signature(object=missing) signature(object=missing) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=FLStock,value=FLQuants) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(from=NULL,to=FLStock,strict=missing) signature(from=FLBiol,to=FLStock,strict=missing) signature(from=FLStock,to=FLBiol,strict=missing) signature(object=missing) signature(object=missing) signature(object=missing) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=character) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=FLStock,value=FLQuant) signature(object=missing) signature(object=missing) signature(x=FLStock,y=missing) signature(object=missing) signature(object=missing) signature(object=missing) signature(object=missing) signature(object=missing) signature(object=missing) The FLR Team
[, [<-, as.FLBiol, as.FLSR, catch, catch<-, catch.n, catch.n<-, catch.wt, catch.wt<-, coerce, computeCatch, computeDiscards, computeLandings, discards, discards<-, discards.n, discards.n<-, discards.wt, discards.wt<-, harvest, harvest<-, harvest.spwn, landings, landings<-, landings.n, landings.n<-, landings.wt, landings.wt<-, m, m<-, mat, m.spwn, plot, ssb, ssbpurec, stock, stock.n, stock.wt, trim, FLComp
data(ple4) landings(ple4) #get the landings slot landings(ple4) <- apply(landings.n(ple4)*landings.wt(ple4),2,sum) # assign values to the landings slot discards(ple4) <- computeDiscards(ple4) harvest(ple4) <- 'f' # set the units of the harvest slot of an FLStock object catch(ple4) <- computeCatch(ple4) catch(ple4) <- computeCatch(ple4, slot="all") ple4[,1] # subset the FLStock trim(ple4, age=2:6, year=1980:1990) #trim the FLStock ssb(ple4) # calculate SSB ssbpurec(ple4) # calculate SSB per recruit biol <- as(ple4, "FLBiol") # coerce an FLStock to an FLBiol flsr <- as.FLSR(ple4) # initialise an FLSR object from an FLStock