GetSppCounts: GetSppCounts

Description Usage Arguments Value

Description

Filter raw BBS counts by species, add 0 counts, and latitude/longitude

Usage

1
2
3
GetSppCounts(bbs_raw = bbs, AOU, years = seq(from = 1997, to = 2016),
  statenum = NULL, countrynum = NULL, strata = NULL, bcr = NULL,
  Write = TRUE, path = NULL)

Arguments

AOU

Numeric AOU code for the species of interest

years

Optional vector containing the years of interest (default in full study period)

statenum

Optional numeric vector containing the states of interest (see BBS website for code values)

countrynum

Optional numeric vector containing the countries of interest (840 = US, 124 = Canada, 484 = Mexico)

strata

Optional numeric vector containing the BBS strata of interest (see BBS website for code values)

bcr

Optional numeric vector containing the BCRs of interest (see BBS website for code values)

Write

Should data be written as .csv file?

path

Path where .csv file should be saved (default is working directory)

bbs

List containing the raw BBS counts, weather, and route info obtained from the function 'get_BBSn()'

Value

A .csv file containing the following fields:

routeID The unique 8 digit route ID for each route

Year The year that the count was conducted

aou The numeric code for the focal species

countN Total individuals of the focal species recorded at stop N (50-stop data) or N-9:N (10-stop data)

Latitude The latitude for the route

Longitude The longitude for the route

Stratum The BBS stratum for the route

BCR The Bird Conservation Region for the route


RushingLab/BBS.SDM documentation built on May 28, 2019, 11:21 a.m.