select_mydata
gets list of species that belongs to a taxon and has a specified string in its mydata-file
Contents
Syntax
[species, nm, sel] = select_mydata (varargin)
Description
gets all species in the add_my_pet collection with mydata files that contain a character string.
Input:
- taxon: character string with name of taxon or cell string with names of species (default: 'Animalia')
- str: character string
- info: optional boolean to search locally if true (only for curators)
Output:
- species: cell string with all species in the add_my_pet collection that belong to that taxon and have a mydata-file that contains str
- nm: string with names of entries that were subjected to selection
- sel: vector of bouleans, which entries are selected or not
Remarks
This function can take a few minutes if 'Animalia' is specified (so all entries are searched), since all mydata-files are read from the web
Example of use
nm = select_mydata('Emig') or nm = select_mydata('Aves','Killpack')