[FLR-list] Error in a4aout at harvest + m(stock) : non-conformable arrays
Iago Mosqueira
iago.mosqueira at jrc.ec.europa.eu
Wed Feb 18 11:58:09 CET 2015
That's right, stock goes from 4-21 but one index goes 2-12
gul.indices[[2]] <- gul.indices[[2]][-c(1,2),]
Those 2 ages need to be dropped, I think.
Iago
On 18/02/2015 11:21, Luis Ridao wrote:
> Hi,
>
> It seems that one one the tunning fleets has a wider age range than
> the the stock object:
>
> > gul.indices[[1]]@range
> min max plusgroup minyear maxyear startf endf
> 6 13 13 1998 2014 0 1
> > gul.indices[[2]]@range
> min max plusgroup minyear maxyear startf endf
> 2.0 12.0 12.0 1996.0 2014.0 0.6 0.7
> > gul at range
> min max plusgroup minyear maxyear minfbar maxfbar
> 4 21 21 1995 2014 6 11
>
> best,
> Luis
>
> On 02/17/2015 05:12 PM, Ernesto Jardim wrote:
>>
>> hi
>>
>> I'm away. Can't replicate ... I had this one before. It's something
>> with data. Check if index has more ages or years than stock.
>>
>> best
>>
>> EJ
>>
>> No dia 17 de Fev de 2015 17:10, "Luis Ridao" <luisr at hav.fo
>> <mailto:luisr at hav.fo>> escreveu:
>>
>> Hi all,
>>
>> Giving "a4a" package a try.
>> I have FLStock and FLIndices objects:
>>
>> > class(gul0001)
>> [1] "FLStock"
>> attr(,"package")
>> [1] "FLCore"
>>
>> > class(gul.indices)
>> [1] "FLIndices"
>> attr(,"package")
>> [1] "FLCore"
>> >
>>
>> The harvest slot is "NAs":
>>
>> > dim(harvest(gul0001))
>> [1] 18 20 1 1 1 1
>>
>> and M slot (M=0.1)
>>
>> > dim(m(gul0001))
>> [1] 18 20 1 1 1 1
>>
>> But when performing a model run an error comes up:
>>
>> > gulfit <- sca(gul0001, gul.indices)
>> Error in a4aout at harvest + m(stock) : non-conformable arrays
>>
>>
>> Any ideas?
>>
>> Thanks in advance
>> _______________________________________________
>> flr-list mailing list
>> flr-list at flr-project.org <mailto:flr-list at flr-project.org>
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>>
>>
>>
>> _______________________________________________
>> flr-list mailing list
>> flr-list at flr-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>
>
>
> _______________________________________________
> flr-list mailing list
> flr-list at flr-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
--
Dr Iago Mosqueira
European Commission – Joint Research Center
Institute for the Protection and Security of the Citizen (IPSC)
Maritime Affairs Unit G03
TP 051, Via Enrico Fermi 2749
I-21027 Ispra (VA), Italy
Office : +39 0332 785413
Fax: +39 0332 789658
iago.mosqueira at jrc.ec.europa.eu
http://fishreg.jrc.ec.europa.eu/home
More information about the flr-list
mailing list