Skip to contents

species_info() and species() return species data stored in a BirdFlow model. They differ only in that species() returns the common name by default so provides a succinct way to get the species name.

Usage

species_info(x, what)

species(x, what)

Arguments

x

A BirdFlow model.

what

"all" for all information (in a list) or the name (see details) of the desired information. If what is omitted species() defaults to "common_name" and species_info() defaults to "all".

Value

The element named by what, unless what is "all" in which case a list of all the species information. If what is omitted species() will return the common name of the species, and species_info() will return the complete list.

Details

The what argument takes the column names used in ebirdst::ebirdst_runs as input (descriptions from ebirdst):

species_codeSix letter eBird code in eBird Taxonomy v2018
scientific_nameScientific name from eBird Taxonomy v2018
common_nameEnglish common name from eBird Taxonomy v2018
breeding_qualityBreeding season quality
breeding_startBreeding season start date
breeding_endBreeding season end date
nonbreeding_qualityNon-breeding season quality
nonbreeding_startNon-breeding season start date
nonbreeding_endNon-breeding season end date
postbreeding_migration_qualityPost-breeding season quality
postbreeding_migration_startPost-breeding season start date
postbreeding_migration_endPost-breeding season end date
prebreeding_migration_qualityPre-breeding season quality
prebreeding_migration_startPre-breeding season start date
prebreeding_migration_endPre-breeding season end date
allreturns the complete list

For convenience the following short versions are also accepted:

code(species_code)
common(common_name)
name(common_name)
scientific(scientific_name)
species(common_name)

Dropped items

The 8 variables below are in ebirdst::ebirdst_runs but are dropped from the BirdFlow model and thus can not be retrieved by species_info().

Four variables that track whether the full range is covered by eBird that must be TRUE for a BirdFlow model to be fit and are then dropped:

postbreeding_migration_range_modeledIs the full range modeled?
prebreeding_migration_range_modeledIs the full range modeled?
nonbreeding_range_modeledIs the full range modeled?
breeding_range_modeledIs the full range modeled?

resident is verified to be FALSE before the model is fit. It and three related variables are then dropped:

residentClassifies this species a resident or a migrant
resident_qualityResident quality
resident_startFor resident species, the year-round start date
resident_endFor resident species, the year-round end date