pay-class: Class "pay" for proportion at age per year

Description Creating Objects from the Class Slots Extends Methods Details See Also Examples

Description

This class encapsulates results of a pay method.

Creating Objects from the Class

Objects of this classe should be created with a call to the contructor function pay(object, ...), where object must be an object of class "FLQuant" and ... can be used to pass trim arguments to the creator funtion.

Slots

.Data

Object of class "FLQuant".

units

Units of measurement, "character".

Extends

Class "FLQuant", directly.

Methods

Inherits from "FLQuant".

Details

Considering C_{ay}, the catch in numbers at age a=1,…,A per year y=1,…,Y, obtained e.g. from the catch.n slot of a "FLStock" object, the computation of pay P_{ay} is:

P_{ay}=\frac{C_{ay}}{∑_a{C_{ay}}}

See Also

FLQuant-class, trim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(ple4sex)
# compute catch proportions at age
ple4sex.pay <- pay(ple4sex@catch.n)
# fine tune 
ttl <- list(label="Catch proportion at age for Plaice in IV", cex=1)
yttl <- list(label="age", cex=0.8)
xttl <- list(cex=0.8)
ax <- list(cex=0.7)
# plot
bubbles(age~year|unit, ple4sex.pay,  main=ttl, 
        ylab=yttl, xlab=xttl, scales=ax)

flr/FLEDA documentation built on May 30, 2020, 10:35 a.m.