propagate: Extend an FLQuant along the iter dimension

Description Generic function Arguments Methods Author(s) See Also Examples

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, 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 slots in the object along the iter dimension

signature(object=FLMetier) :

Extends all FLQuant slots in the object along the iter dimension, as well as those of those objects of class FLCatch inside the catches slot

signature(object=FLFleet) :

Extends all FLQuant slots in the object along the iter dimension, as well as those of those objects of class FLMetier inside the metiers slot

signature(object=FLPar) :

Extends object along the iter dimension

Author(s)

The FLR Team

See Also

FLComp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
flq <- FLQuant(rnorm(50), dim=c(5,10))
propagate(flq, 10)
# Look at the %NA in summary
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)

FLCore documentation built on May 2, 2019, 5:46 p.m.