Description Slots Extends Constructor Constructor Arguments Methods Author(s) See Also Examples
The FLQuant
class is a six-dimensional array
designed to
store most quantitative data used in fisheries and population modelling.
The sixth dimensions are named. The name of the first dimension can be altered
by the user from its default, quant
. This could typically be age
or
length
for data related to natural populations. The only name not accepted is
'cohort', as data structured along cohort should be stored using the
FLCohort
class instead. Other dimensions are always names as follows:
year
, for the calendar year of the datapoint; unit
, for any kind of
division of the population, e.g. by sex; season
, for any temporal strata shorter
than year; area
, for any kind of spatial stratification; and iter
, for
replicates obtained through bootstrap, simulation or Bayesian analysis.
In addition, FLQuant
objects contain a units
attribute, of class
character
, intended to contain the units of measurement relevant to
the data.
A 6-D array for numeric data. array
.
Units of measurement. character
.
FLArray array
The FLQuant
constructor method allows simple creation of new FLQuant objects from vectors, matrices and arrays.
R standard recyling rules (row first) are applied in most cases, so if an input object smaller than the required dimensions is given, it will be reused. An exception is made for objects of class vector, which will be considered to go along the second dimension (year
) instead of the first one. To recover the standard behaviour, a matrix can be created.
The iter
argument takes preference over dim
but not over dimnames
, so it is preferable to ensure consistency between arguments. dim
and dimnames
must match and an error is thrown otherwise.
Describe method
Describe method
Describe method
Describe method
Describe method
An input object.
The dimensions of the object. A vector of class numeric
.
The dimension names, as a list
.
A character
string with the name of the first dimension. Defaulta to 'quant'
A character
string with the units of measurement. Defaults to 'NA'
The number of iterations, i.e. the length of the sixth dimension, on the output object.
TRUE
Extract elements
signature(x=FLQuant,i=ANY,j=ANY,drop=missing)
Substitute elements
signature(x=FLQuant,i=ANY,j=ANY,value=missing)
Operate with a function along certain dimensions
signature(X=FLQuant,MARGIN=numeric,FUN=function)
Arithmetic operations
signature(e1=FLQuant,e2=FLQuant)
Convert to a data.frame with 7 columns
signature(x=FLQuant,row.names=ANY,optional=ANY)
Convert into an FLQuant
signature(x=missing)
Plot a barchart following the given formula
signature(x=formula,data=FLQuant)
Plot a bubble following the given formula, with size of the bubbles given by the values in the object
signature(x=formula,data=FLQuant)
Describe method
signature(x=formula,data=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLIndex,value=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLIndex,value=FLQuant)
Describe method
signature(from=NULL,to=FLQuant,strict=missing)
Describe method
signature(object=missing)
Describe method
signature(x=missing,value=missing)
Describe method
signature(obj=missing)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(x=formula,data=FLQuant)
Describe method
signature(object=missing)
Describe method
signature(object=FLBiol,value=FLQuant)
Describe method
signature(object=missing)
Describe method
signature(object=missing)
Describe method
signature(catches=missing)
Describe method
signature(object=missing)
Describe method
signature(object=missing)
Describe method
signature(object=FLQuant,model=missing)
Describe method
signature(object=FLQuant,model=character)
Describe method
signature(object=FLQuant,model=function)
Describe method
signature(object=FLQuant,model=formula)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(x=formula,data=FLQuant)
Describe method
signature(object=missing)
Describe method
signature(object=missing,value=missing)
Describe method
signature(object=missing)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLStock,value=FLQuant)
Describe method
signature(object=FLBiol,value=FLQuant)
Describe method
signature(object=FLBiol,value=FLQuant)
Describe method
signature(x=missing)
Describe method
signature(x=FLQuant,y=missing)
Describe method
signature(object=FLCatch,value=FLQuant)
Describe method
signature(x=missing)
Describe method
signature(object=missing)
Describe method
signature(object=missing)
Describe method
signature(object=missing,value=missing)
Describe method
signature(x=missing)
Describe method
signature(n=numeric,meanlog=FLQuant,sdlog=FLQuant)
Describe method
signature(n=numeric,meanlog=FLQuant,sdlog=numeric)
Describe method
signature(n=numeric,meanlog=numeric,sdlog=FLQuant)
Describe method
signature(n=numeric,mean=FLQuant,sd=FLQuant)
Describe method
signature(object=missing)
Describe method
signature(object=FLBiol,value=FLQuant)
Describe method
signature(x=formula,data=FLQuant)
Describe method
signature(object=missing)
Describe method
signature(object=missing)
Describe method
signature(x=missing)
Describe method
signature(x=FLQuant,value=character)
Describe method
signature(x=missing)
Describe method
signature(object=FLBiol,value=FLQuant)
Describe method
signature(x=formula,data=FLQuant)
The FLR Team
[, [<-, apply, Arith, as.data.frame, as.FLQuant, barchart, bubbles, bwplot, catch<-, catch.n<-, catch.wt<-, coerce, cv, dimnames<-, dims, discards<-, discards.n<-, discards.wt<-, dotplot, E, fec<-, FLCatch, FLCohort, FLMetier, FLQuant, FLQuantPoint, FLSR, harvest<-, histogram, iter, iter<-, iters, landings<-, landings.n<-, landings.wt<-, m<-, n<-, names, plot, price<-, print, propagate, quant, quant<-, quantile, rlnorm, rnorm, show, spwn<-, stripplot, summary, trim, units, units<-, window, wt<-, xyplot, array
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # creating a new FLQuant
flq <- FLQuant()
flq <- FLQuant(1:10, dim=c(2,5))
summary(flq)
# Vectors are used column first...
dim(FLQuant(1:10))
# ...while matrices go row first.
dim(FLQuant(matrix(1:10)))
FLQuant(matrix(rnorm(100), ncol=20))
FLQuant(array(rnorm(100), dim=c(5,2,1,1,1,10)))
FLQuant(array(rnorm(100), dim=c(5,2)), iter=10)
# working with FLQuant objects
flq <- FLQuant(rnorm(200), dimnames=list(age=1:5, year=2000:2008), units='diff')
summary(flq)
flq[1,]
flq[,1]
flq[1,1] <- 0
units(flq)
quant(flq)
xyplot(data ~ year, data=flq, type='b', main='FLQ Test Plot', groups=age,
ylab='diff', xlab='', pch=19, auto.key=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.