View source: R/getAbundanceAnomaly.R
getAbundanceAnomaly | R Documentation |
'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.
getAbundanceAnomaly(
collections,
interval,
target_year,
agency = NULL,
species = NULL,
trap = NULL,
sex = "female",
trapnight_min = 1,
trapnight_max = NULL,
separate_by = NULL
)
collections |
Collections data retrieved from 'getArthroCollections()' |
interval |
Calculation interval for abundance, accepts “CollectionDate”,“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) |
agency |
An optional vector for filtering agency by character code |
species |
An optional vector for filtering species. 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 |
An optional vector for filtering trap type by acronym. Trap_acronym is the is the accepted notation. Run unique(collections$trap_acronym) to see trap types present in your data. If trap is unspecified, the default NULL will return data for all trap types. |
sex |
An optional vector for filtering sex type. Accepts 'male', 'female',or 'other'. If sex is unspecified, the default NULL will return data for female sex. |
trapnight_min |
Minimum trap night restriction for calculation. Default is 1. |
trapnight_max |
Maximum trap night restriction for calculation. Default is no restriction. |
separate_by |
Separate/group the calculation by 'trap','species', 'agency','county', or 'spatial'. Default NULL does not separate. |
Abundance anomaly calculation
getAbundanceAnomaly(sample_collections,"Biweek",target_year=2020, species="Cx pipiens")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.