[FLR-list] name of FLStock in fwd() get lost
Clara Ulrich
clu at aqua.dtu.dk
Thu Mar 22 11:43:01 CET 2012
Hi,
I am running and updating my FLR Fcube code from last year with the latest packages from the Rdevel repository and get some errors.
In particular it seems that the name of an FLStock object get lost after using fwd() - which was not the case before:
That is the old code I use:
dem.st.fwd <- lapply(dem.stock, function(x) {
n. <- name(x)
ctrl. <- ctrl.MP[[n.]]
yr. <- unique(ctrl. at target[,"year"])
srPar<-FLPar(c(Recr[n.,yr.]),dimnames=list(params="a",year=yr.,iter=1))
x <- fwd(x,ctrl=ctrl.,sr=list(model="mean",params=srPar))
})
Which gives:
> dem.stock[[1]]@name
[1] "COD"
> dem.st.fwd[[1]]@name
character(0)
Cheers
Clara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/flr-list/attachments/20120322/be539028/attachment-0001.html>
More information about the flr-list
mailing list