| FLModel {FLCore} | R Documentation |
Constructor method for objects of class FLModel-class. This method is to
be called by the constructor methods of classes extending FLModel.
An argument class instructs the constructor about the exact class of the
returned object. Constructor methods for FLModel-based class should simply
invoke this method with the appropriate class argument (See example below).
FLModel(object)
model slot.FLModel object is returned.SRModels for uses of this mechanismThe FLR Team
# Normally, FLModel objects won't be created, as class lacks input slots
summary(FLModel(length~width*alpha))
# Objects of FLModel-based classes use their own constructor,
# which internally calls FLModel
fsr <- FLModel(rec~ssb*a, class='FLSR')
is(fsr)
summary(fsr)
# An example constructor method for an FLModel-based class
# create FLGrowth class with a single new slot, 'mass'
setClass('FLGrowth', representation("FLModel",
mass='FLArray'))
# define creator method, based on FLModel()
setGeneric('FLGrowth', function(object, ...)
standardGeneric('FLGrowth'))
setMethod('FLGrowth', signature(object='ANY'),
function(object, ...)
FLModel(object, class='FLGrowth', ...))