sop {FLCore}R Documentation

Calculates the sum of products correction

Description

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

Usage

sop(stock, slot)

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

Value

Returns the ratio as an FLQuant

Author(s)

FLR Team

Examples

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

[Package FLCore version 1.3-3 Index]