propagate {FLCore} | R Documentation

## Extend an FLQuant along the iter dimension

### Description

FLR objects with a single iteration (length of 1 in the sixth dimension) can be extended using the `propagate` method. The `type` argument selects whether the new iterations are filled with the content of the first iteration (`type='all'`) or left empty (`type='first'`).

For objects of class `FLPar-class`, propagate will extend the object along the last dimension, `iter`. The fill.iter argument defaults to FALSE, in contrast with FLQuant. Objects do not need to have iter=1 to be extended, but only if fill.iter=FALSE.

### Generic function

propagate(object)

### Arguments

object :
  An FLR object to extend.
fill.iter :
  Copy the first iteration along the new ones ('TRUE'), the default, or leave them empty ('FALSE').
iter :
  Number of iterations.

### Methods

signature(object=FLQuant) :
  Extends object along the `iter` dimension
signature(object=FLPar) :
  Extends object along the `iter` dimension
signature(object=FLComp) :
  Extends all `FLQuant-class` slots in the object along the `iter` dimension
signature(object=FLMetier) :
  Extends all `FLQuant-class` slots in the object along the `iter` dimension, as well as those of those objects of class `FLCatch-class` inside the `catches` slot
signature(object=FLFleet) :
  Extends all `FLQuant-class` slots in the object along the `iter` dimension, as well as those of those objects of class `FLMetier-class` inside the `metiers` slot
signature(object=FLPar) :
  Extends object along the `iter` dimension

### Author(s)

The FLR Team

### See Also

FLComp

### Examples

    flq <- FLQuant(rnorm(50), dim=c(5,10))
    propagate(flq, 10)
    # Look at the
    summary(propagate(flq, 10, fill.iter=FALSE))

    flp <- FLPar(1:10, params=letters[1:10])
    propagate(flp, 10)
    propagate(flp, 10, fill.iter=TRUE)

    flp <- FLPar(1:15, params=letters[1:5], iter=3)
    propagate(flp, 10)

[Package FLCore version 2.2 Index]