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 an object of class `FLStock-class` 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

    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, 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

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

[Package FLCore version 2.2 Index]