Skip to contents

A class for modelling cohorts.

Usage

FLCohort(object, ...)

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

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

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

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

# S4 method for 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.

See also

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

Author

The FLR Team

Examples


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