sop {FLCore} | R Documentation |
Calculates the sum of products correction for quantities such a catch, discards, landings. For example in FLStock there are slots catch.n, catch.wt and catch, catch should equal the products of catch.n*catch.wt summed over ages. The function returns the ratio (i.e. the correction) of catch.n*catch.wt : catch, which can be used to correct either catch.n or catch.wt
sop(stock, slot)
stock |
An FLStock object |
slot |
Name of the slot group, i.e. "catch", "landings" or "discards" for an FLStock object. |
Can be used for any class or slot where there are the three FLQuant slots foo, foo.n and foo.wt
Returns the ratio as an FLQuant
FLR Team
data(ple4) sop(ple4,"catch")