select_eco
selects taxa with a particular codes for a variable
Contents
Syntax
taxa = select_eco (var, code)
Description
Selects taxa with a particular eco-code for a specified variable. Stage codes for the variables food and habitat are ignored. Daughter codes are included in the selection. E.g. TA for variable ecozone also selects entries with TAt and TAz for ecozone.
Input:
- var: character string with name of variable: climate, ecozone, habitat, embryo, migrate, food, gender, reprod.
- code: character string codes
Output:
- taxa: cell string with names of selected entries
- sel: vector of booleans that indicate selection in the whole collection of entries
Remarks
Example of use
[taxa, sel] = select_eco('ecozone', {'TA'})