[FLR-list] FLQuant creator
Dorleta Garcia
dgarcia at azti.es
Mon May 29 10:32:22 CEST 2017
Right, thanks!!
De: flr-list-bounces at lists.r-forge.r-project.org [mailto:flr-list-bounces at lists.r-forge.r-project.org] En nombre de Iago.MOSQUEIRA at ec.europa.eu
Enviado el: lunes, 29 de mayo de 2017 10:28
Para: flr-list at flr-project.org
Asunto: Re: [FLR-list] FLQuant creator
There hasn't been any chances to the creator, so I will check why it doesn't work.
But you don't need to specify both dim and dimnames, only the second is enough, avoids a possible conflict between the two.
flq <- FLQuant(NA, dimnames = list(age = 0:10, year = 1975:2014))
Iago
--
Dr Iago Mosqueira
European Commission
DG Joint Research Centre
Directorate D - Sustainable Resources
Unit D.02 Water and Marine Resources
TP 051, Via Enrico Fermi 2749
I-21027 Ispra (VA), Italy
Phone : +39 0332 785413
iago.mosqueira at ec.europa.eu<mailto:iago.mosqueira at ec.europa.eu>
________________________________
From: flr-list-bounces at lists.r-forge.r-project.org<mailto:flr-list-bounces at lists.r-forge.r-project.org> [flr-list-bounces at lists.r-forge.r-project.org] on behalf of Dorleta Garcia [dgarcia at azti.es]
Sent: 29 May 2017 10:17
To: flr-list at flr-project.org<mailto:flr-list at flr-project.org>
Subject: [FLR-list] FLQuant creator
Hi all,
The code below used to work before:
flq <- FLQuant(NA, dim = c(11,40),dimnames = list(age = 0:10, year = 1975:2014))
But now if you want to build a FLQuant with dimnames it seems you have to declare the names of the six dimensions:
flq <- FLQuant(1, dim = c(1,51,1,1,1,niter), dimnames = list(quant = 'all', year = 1978:2028, unit = 'unique', season = 'all', area = 'unique', iter = 1:Niter))
Is this behavior deliberate? Is something wrong on the code above? Or there is a bug in FLQuant creator coding?
Thanks,
Dorleta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/flr-list/attachments/20170529/2a5ef8d6/attachment-0001.html>
More information about the flr-list
mailing list