[FLR-list] FLQuant creator

Iago.MOSQUEIRA at ec.europa.eu Iago.MOSQUEIRA at ec.europa.eu
Mon May 29 10:27:59 CEST 2017


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
________________________________
From: 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
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/546da104/attachment.html>


More information about the flr-list mailing list