<div dir="ltr"><div><div><div><br></div>I also tried that:<br><br></div>> FLIndices(trim(My_indices,age=4:6))<br>Error in FLIndices(trim(sai.indices, age = 4:6)) : <br>  error in evaluating the argument 'object' in selecting a method for function 'FLIndices': Error in function (classes, fdef, mtable)  : <br>
  unable to find an inherited method for function "trim", for signature "FLIndices"<br><br></div>Luis<br></div><div class="gmail_extra"><br clear="all"><div><div><br>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</div>
Luis Ridao Cruz<br>Faroe Marine Research Institute<br>Nóatún 1, P.O. Box 
3051<br>FO-110 Tórshavn<br>Faroe Islands<br>Tel   : (+298) 353900<br>Fax: : (+298) 353901<br>e-mail: 
<a href="mailto:luisr@hav.fo" target="_blank">luisr@hav.fo</a><br>           <a href="mailto:luridao@gmail.com" target="_blank">luridao@gmail.com</a><div>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-<br><br></div></div>

<br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 6:06 PM, Iago Mosqueira <span dir="ltr"><<a href="mailto:iago.mosqueira@gmail.com" target="_blank">iago.mosqueira@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
Without checking, that command is passing the age argument to window,<br>
not trim. windows only takes start and end. What about<br>
<br>
FLIndices(trim(My_indices, age = 3:8))<br>
<br>
<br>
Iago<br>
<div><div class="h5"><br>
On 04/18/2013 11:21 AM, Luis Ridao wrote:<br>
><br>
> FLR-help,<br>
><br>
> Trying to use the "trim" function to subset a FLIndices object.<br>
> but just getting errors all the way:<br>
><br>
> FLIndices(trim(window(My_indices, age = 3:8)))<br>
><br>
> Using R-2.14.2 and FLCore 2.4 and FLXSA 2.4<br>
><br>
> Any help?<br>
><br>
> Thanks in advance<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> flr-list mailing list<br>
> <a href="mailto:flr-list@flr-project.org">flr-list@flr-project.org</a><br>
> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list</a><br>
><br>
<br>
</blockquote></div><br></div>