[FLR-list] bug in areaSums()
Hintzen, Niels
niels.hintzen at wur.nl
Wed Jul 31 16:53:11 CEST 2013
Hi,
Using FLCore under R2.13.2 on windows machine under 32 bits. Version 2.4, build 2011-10-05 12:21:01, and I just came across a bug I assume in areaSums()
The function sums over area but also over iters, while that should not be the case.
See e.g.
library(FLCore)
data(ple4)
dmns <- dimnames(ple4 at stock.n)
dmns$area <- 1:3
ple <- FLStock(stock.n=FLQuant(dimnames=dmns))
for(iArea in dmns$area)
ple[,,,,iArea] <- ple4
ple <- propagate(ple,iter=10)
dim(ple at harvest) #still 10 iters
dim(areaSums(ple at harvest)) #only 1 iter...
Is this solved in later versions already, because then I'll fix it for my own code for now.
Cheers, Niels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/flr-list/attachments/20130731/250ae456/attachment-0001.html>
More information about the flr-list
mailing list