propagate | R Documentation |
Methods to extend objects of various FLR classes along the iter
(6th FLQuant) dimension. Objects must generally have a single
iter
to be extended. The new iterations can be filled with copies
of the existing, or remain as NA
.
propagate(object, ...)
## S4 method for signature 'FLQuant'
propagate(object, iter, fill.iter = TRUE)
object |
Object to be propagated. |
fill.iter |
Should first array be copied to others? Defaults to FALSE. |
iters |
No. of iterations in output. |
propagate(object, ...)
The FLR Team
FLQuant
# An FLQuant with one iter (dim(flq)[6] == 1)
flq <- FLQuant(rnorm(80), dim=c(4,20), quant='age')
# can now be extended along the `iter` dimension, with
#' copies of the first
propagate(flq, 100)
# or without
iter(propagate(flq, 100, fill.iter=FALSE), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.