FLCohort: Class FLCohort

FLCohortR Documentation

Class FLCohort

Description

A class for modelling cohorts.

Usage

FLCohort(object, ...)

## S4 method for signature 'FLQuant'
FLCohort(object, ...)

## S4 method for signature 'FLCohort'
FLCohort(object, units = units(object))

## S4 method for signature 'array'
FLCohort(
  object,
  dim = rep(1, 6),
  dimnames = "missing",
  units = "NA",
  iter = 1,
  fill.iter = TRUE
)

## S4 method for signature 'vector'
FLCohort(
  object,
  dim = c(length(object), rep(1, 5)),
  dimnames = "missing",
  units = "NA",
  iter = 1
)

## S4 method for signature 'missing'
FLCohort(object, dim = rep(1, 6), dimnames = "missing", units = "NA", iter = 1)

Arguments

object

Input numeric object

...

Additonal arguments

Details

This class represents cohorts in columns. It simply shifts the typical matrix representation where cohorts are found on the diagonals, into a matrix where cohorts are found in columns. It is very usefull for all analysis that want to make use of cohorts instead of years.

Slots

.Data

Internal S4 data representation. array.

units

The data units in some understandable metric. character

Constructor

Objects of this class are generally constructed from an FLQuant object.

Author(s)

The FLR Team

See Also

[, as.data.frame, bubbles, ccplot, FLCohort,FLQuant-method, flc2flq, plot, quant, trim, units, units<-,FLCohort,character-method, xyplot, array

Examples


data(ple4)
flq <- catch.n(ple4)
flc <- FLCohort(flq)
plot(trim(flc, cohort=1960:2000))


flr/FLCore documentation built on May 4, 2024, midnight