getAbundanceAnomaly {vectorsurvR} | R Documentation |
Get Abundance Anomaly
Description
'getAbundanceAnomaly(...) 'requires at least five years prior to the target_year of arthro collections data to calculate for the specified parameters. The function uses the methods of the Gateway Abundance Anomaly calculator, and will not work if there is fewer than five years of data present.
Usage
getAbundanceAnomaly(
collections,
interval,
target_year,
species_list = NULL,
trap_list = NULL,
species_separate = FALSE
)
Arguments
collections |
Collections data retrieved from 'getArthroCollections()' |
interval |
Calculation interval for abundance, accepts “collection_date”,“Biweek”,“Week”, and “Month |
target_year |
Year to calculate analysis on. Collections data must have a year range of at least (target_year - 5, target_year) |
species_list |
Species filter for calculating abundance. Species_display_name is the accepted notation.To see a list of species present in your data run 'unique(collections$species_display_name)'. If species is unspecified, the default NULL will return data for all species in data |
trap_list |
Trap filter for calculating abundance. Trap_acronym is the is the accepted notation. Run 'unique(collections$trap_acronym)' to see trap types present in your data. If trap_list is unspecified,the default NULL will return data for all trap types |
species_separate |
Should the species in species_list have abundance calculated separately? Setting to FALSE calculates the combined abundance. The same result can be performed by calculating on one species at the time description |
Value
Abundance anomaly calculation
Examples
getAbundanceAnomaly(sample_collections,"Biweek",target_year=2020, species_list="Cx pipiens")