FLR

| Tasklist |

FS#11 - Selection using '[' for FLFleet interferes with normal subsetting along dimensions

Attached to Project: FLR
Opened by Iago Mosqueira (imosqueira) - Monday, 09 March 2009, 11:39 GMT+2
Task Type Bug Report
Package FLCore
Status New
Assigned To Ernesto Jardim (ernesto)
Iago Mosqueira (imosqueira)
Operating System Linux
Severity High
Priority High
Reported Version 2.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The overloading of '[' and '[[' on FLFleet to be used when selecting down the metier and catch levels, returning shole FLFleet objects or single metiers/catches, interferes with normal use of '[' for subsetting along quant, year,...

One option is to use subset for the later type of selection, but it still breaks expected behaviour.

Another option, tricky to implement, is to try to dispatch for one or the other according to the selection level (indices for dims 3:6 are always going to be for units, seasons and iters), and value (indices for 1:22 could be matched first with dimnames and then with metier/catch names). This still leaves room for problem if names coincide, and what to do if selection is done by number.
This task depends upon

Loading...