getAbundance {vectorsurvR}R Documentation

Get abundance

Description

Calculates abundance

Usage

getAbundance(
  collections,
  interval,
  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.

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.

Value

A dataframe of abundance values grouped by interval and filtered by parameters

Examples


getAbundance(sample_collections,
             interval = 'Week',
             species_list = list('Cx pipiens'),
             trap_list = list('GRVD', 'CO2'),
             species_separate = FALSE)

[Package vectorsurvR version 0.2.0 Index]