sop: Calculates the sum of products correction

Description Usage Arguments Details Value Author(s) Examples

Description

Calculates the sum of products correction for quantities such a catch, discards, landings. For example in an object of class FLStock there are slots catch.n, catch.wt and catch. catch should equal the products of catch.n*catch.wt summed over ages. This function returns the ratio (i.e. the correction) of catch.n*catch.wt : catch, which can then be used to correct either catch.n or catch.wt.

Usage

1

Arguments

stock

An FLStock object

slot

Name of the slot group, i.e. "catch", "landings" or "discards" for an FLStock object.

Details

Can be used for any class or slot where there are the three FLQuant slots foo, foo.n and foo.wt, representing totals added over all quants (ages), numbers by quant, and weight by quant.

Value

Returns the ratio as an FLQuant

Author(s)

FLR Team

Examples

1
2
data(ple4)
sop(ple4,"catch")

FLCore documentation built on May 2, 2019, 5:46 p.m.