survey | R Documentation |
A method to generate observations of abundance at age.
survey(object, index, ...)
## S4 method for signature 'FLStock,FLIndex'
survey(
object,
index,
sel = sel.pattern(index),
ages = dimnames(index)$age,
timing = mean(range(index, c("startf", "endf"))),
index.q = index@index.q,
stability = 1
)
## S4 method for signature 'FLStock,FLIndexBiomass'
survey(
object,
index,
sel = sel.pattern(index),
ages = ac(seq(range(index, c("min")), range(index, c("max")))),
timing = mean(range(index, c("startf", "endf"))),
catch.wt = index@catch.wt,
index.q = index@index.q,
stability = 1
)
## S4 method for signature 'FLStock,missing'
survey(
object,
sel = catch.sel(object),
ages = dimnames(sel)$age,
timing = 0.5,
index.q = 1,
biomass = FALSE,
stability = 1
)
## S4 method for signature 'FLStock,FLIndices'
survey(object, index, ...)
object |
The object on which to draw the observation |
An FLQuant for the index of abundance
The FLR Team
FLComp
data(ple4)
data(ple4.index)
# CONSTRUCT a survey from stock and index
survey(ple4, ple4.index)
# Create FLIndexBiomass
ple4.biom <- as(ple4.index, "FLIndexBiomass")
survey(ple4, ple4.biom)
data(ple4)
survey(ple4)
survey(ple4, biomass=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.