revenue {FLCore}R Documentation

Calculate the revenue of a fleet

Description

This is a method that calculates the gross or nett revenue for an object. It is currently only defined for objects of class FLFleet, but may in the future be extended to other classes.

The revenue is calculated as by the last 4 dimensions of the FLQuants used, because mixing of quants is allowed in FLFleet. The type of revenue (either gross or nett revenue) to be calculated is set by the "type" argumement. Gross revenue is calculated by the sum of landings.n*landings.wt*price slots in each of the FLCatch objects present within the fleet. Nett revenue is calculated by substracting the sum of the costs in the fleet from the gross revenue.

Value

An FLQuant with length 1 in the first dimension

Author(s)

FLR Team

See Also

FLFleet-class

Examples

 data(bt4)
 bt4@catches[[1]]@price[] <- 3
 bt4@catches[[2]]@price[] <- 6
 revenue(bt4, type="gross")

[Package FLCore version 1.4-4 Index]