[FLR-list] [FLR-devel] docs & sweave
Iago Mosqueira
iago.mosqueira at gmail.com
Tue Jan 17 09:21:35 CET 2012
On 16 January 2012 17:11, Finlay Scott (Cefas) <finlay.scott at cefas.co.uk> wrote:
> Hi,
> Think I have found a bug with iter() for FLStock objects
>
> data(ple4)
> # Propagate to 2 iters
> ple4.prop <- propagate(ple4,2)
> # Make a copy of the original object and double the harvest slot
> ple42 <- ple4
> ple42 at harvest <- ple42 at harvest*2
>
> # Overwrite the second iteration only
> iter(ple4.prop,2) <- ple42
>
> # Check the harvest slots
> ple4 at harvest
> ple42 at harvest
> # Has overwritten all iterations, not just the second
> ple4.prop at harvest[,,,,,1]
> ple4.prop at harvest[,,,,,2]
>
> Cheers
>
> Finlay
>
Hi,
Well spotted. The [<- method for FLStock, which iter()<- uses, was not
using the index n for iter. Fixed now in SVN
Cheers,
Iago
BTW, the flr-devel list at sf.net is now defunct, moved conversation to flr-list
More information about the flr-list
mailing list