[FLR-list] trim method for stock and indices objects

Luis Ridao luridao at gmail.com
Fri Apr 19 10:09:16 CEST 2013


I also tried that:

> FLIndices(trim(My_indices,age=4:6))
Error in FLIndices(trim(sai.indices, age = 4:6)) :
  error in evaluating the argument 'object' in selecting a method for
function 'FLIndices': Error in function (classes, fdef, mtable)  :
  unable to find an inherited method for function "trim", for signature
"FLIndices"

Luis


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
           luridao at gmail.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-



On Thu, Apr 18, 2013 at 6:06 PM, Iago Mosqueira <iago.mosqueira at gmail.com>wrote:

>
> Hi,
>
> Without checking, that command is passing the age argument to window,
> not trim. windows only takes start and end. What about
>
> FLIndices(trim(My_indices, age = 3:8))
>
>
> Iago
>
> On 04/18/2013 11:21 AM, Luis Ridao wrote:
> >
> > FLR-help,
> >
> > Trying to use the "trim" function to subset a FLIndices object.
> > but just getting errors all the way:
> >
> > FLIndices(trim(window(My_indices, age = 3:8)))
> >
> > Using R-2.14.2 and FLCore 2.4 and FLXSA 2.4
> >
> > Any help?
> >
> > Thanks in advance
> >
> >
> > _______________________________________________
> > 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/20130419/e9499458/attachment.html>


More information about the flr-list mailing list