Description Slots Extends Constructor Constructor arguments Methods Author(s) See Also Examples
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 year
(FLQuant
) Catch numbers by quant and year
(FLQuant
) Catch weights by quant and year
(FLQuant
) Total discards weight by year
(FLQuant
) Discard numbers by quant and year
(FLQuant
) Discard weights by quant and year
(FLQuant
) Total landings weight by year
(FLQuant
) Landing numbers by quant and year
(FLQuant
) Landing weights by quant and year
(FLQuant
) Total stock weight by year
(FLQuant
) Stock numbers by quant and year
(FLQuant
) Stock weights by quant and year
(FLQuant
) Natural mortality by quant and year
(FLQuant
) Proportion mature by quant and year
(FLQuant
) Harvest rate or fishing mortality by quant and year. The units of the FLQuant should be set to 'harvest' or 'f' accordingly
(FLQuant
) Proportion of harvest/fishing mortality before spawning by quant and year
(FLQuant
) Proportion of natural mortality before spawning by quant and year
(character
) Name of the stock
(character
) Description of stock
(numeric
) Named vector containing the dimensions of the stock object
FLComp
The FLStock(object, ...)
constructor method allows simple creation of new FLStock with the methods described below.
Returns an FLStock
using the first provided argument of class FLQuant
for object sizing, or FLQuant()
if none given.
Returns and FLStock
that uses object only for sizing.
An initial FLQuant only used for sizing.
The age/length to be considered as plusgroup.
Extra objects to be allocated to given slots.
Subsets an FLStock by subsetting each FLQuant slot in the object
signature(x=FLStock,i=ANY,j=ANY,drop=missing)
Assign to a subset of an FLStock an FLStock of equivalent dimension
signature(x=FLStock,i=ANY,j=ANY,value=missing)
Convert an FLStock object to an FLBiol object
signature(object=missing)
Initialise an FLSR object from an FLStock object
signature(object=missing)
Get the catch slot from an FLStock object
signature(object=missing)
Assign values to the catch slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Assign values to the catch, catch.n and catch.wt slots of an FLStock object
signature(object=FLStock,value=FLQuants)
Get the catch.n slot of an FLStock object
signature(object=missing)
Assign values to the catch.n slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the catch.wt slot of an FLStock object
signature(object=missing)
Assign values to the catch.wt slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Force an object of class FLStock to another class using as(from, to)
signature(from=NULL,to=FLStock,strict=missing)
Force an object of class FLBiol to an object of class FLStock. Uses as(from, to)
signature(from=FLBiol,to=FLStock,strict=missing)
Force an object of class FLStock be an object of class FLBiol. Uses as(from, to)
signature(from=FLStock,to=FLBiol,strict=missing)
Calculate the total catch weight by year for an FLStock
signature(object=missing)
Calculate the total discards weight by year for an FLStock
signature(object=missing)
Calculate the total landings weight by year for an FLStock
signature(object=missing)
Get the discards slot of an FLStock object
signature(object=missing)
Assign values to the discards slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the discards.n slot of an FLStock object
signature(object=missing)
Assign values to the discards.n slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the discards.wt slot of an FLStock object
signature(object=missing)
Assign values to the discards.wt slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the harvest slot of an FLStock object
signature(object=missing)
Assign values to the units of the harvest slot of an FLStock object
signature(object=FLStock,value=character)
Assign values to the harvest slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the harvest.spwn slot from an FLStock object
signature(object=missing)
Get the landings slot of an FLStock object
signature(object=missing)
Assign values to the landings slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the landings.n slot from an FLStock object
signature(object=missing)
Assign values to the landings.n slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the landings.wt slot of an FLStock object
signature(object=missing)
Assign values to the landings.wt slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the m slot of an FLStock object
signature(object=missing)
Assign values to the m slot of an FLStock object
signature(object=FLStock,value=FLQuant)
Get the mat slot of an FLStock object
signature(object=missing)
Get the m.spwn slot of an FLStock object
signature(object=missing)
A summary plot of an FLStock object
signature(x=FLStock,y=missing)
Calculate SSB by year for an FLStock object
signature(object=missing)
Calculate SSB per recruit for an FLStock object
signature(object=missing)
Get the stock slot of an FLStock object
signature(object=missing)
Get the stock.n slot of an FLStock object
signature(object=missing)
Get the stock.wt slot of an FLStock object
signature(object=missing)
Trim an FLStock object to a reduced range over the year or quant dimension
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.