[FLR-list] FLR short term forecasts

Laurie lauriekell at googlemail.com
Fri Apr 26 17:44:46 CEST 2013


Sorry it wasnt code, it was just the args cut from the stf code in FLAssess.

I.e.

library(FLAssess)
?stf


On 26/04/13 17:35, Luis Ridao wrote:
> Thanks Laurie,
>
> but there is an error in the code
> > setMethod('stf', signature(object='FLStock'),
> + function(object, nyears=3, wts.nyears=3, fbar.nyears=wts.nyears, 
> f.rescale=FALSE,
> + arith.mean=TRUE, na.rm=TRUE, end=dims(object)$maxyear + nyears)
> + )
> Error: unexpected ')' in:
> "arith.mean=TRUE, na.rm=TRUE, end=dims(object)$maxyear + nyears)
> )"
>
> the extra ")" that is missing gives the error
>
> ?
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> Luis Ridao Cruz
> Faroe Marine Research Institute
> Nóatún 1, P.O. Box 3051
> FO-110 Tórshavn
> Faroe Islands
> Tel   : (+298) 353900
> Fax: : (+298) 353901
> e-mail: luisr at hav.fo <mailto:luisr at hav.fo>
> luridao at gmail.com <mailto:luridao at gmail.com>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>
>
>
> On Fri, Apr 26, 2013 at 4:25 PM, Laurie <lauriekell at googlemail.com 
> <mailto:lauriekell at googlemail.com>> wrote:
>
>
>
>     On 26/04/13 16:22, Luis Ridao wrote:
>
>
>         FLR help,
>
>         I was wondering how to implement Ices-type standard short-term
>         forecasts.
>
>         The former function "FLSTF.control" is gone now.
>
>         Thanks in advance
>
>
>     The stf method generates an FLStock object with the future years
>     set up, e.g.
>
>     setMethod('stf', signature(object='FLStock'),
>       function(object, nyears=3, wts.nyears=3, fbar.nyears=wts.nyears,
>     f.rescale=FALSE,
>         arith.mean=TRUE, na.rm=TRUE, end=dims(object)$maxyear + nyears)
>
>     Laurie
>     _______________________________________________
>     flr-list mailing list
>     flr-list at flr-project.org <mailto:flr-list at flr-project.org>
>     https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>
>
>
>
> _______________________________________________
> flr-list mailing list
> flr-list at flr-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/flr-list/attachments/20130426/e352d156/attachment.html>


More information about the flr-list mailing list