GetCorrData: GetCorrData

Description Usage Arguments Value

Description

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

Usage

1
2
3
4
GetCorrData(bbs_raw = bbs, path, alpha = NULL, common = NULL,
  start.year = 1966, end.year = 2016, statenum = NULL,
  countrynum = NULL, strata = NULL, bcr = NULL, buffer = 2,
  occ = TRUE, lon = NULL)

Arguments

alpha

4-letter alpha code for the species of interest

common

Common name for the species of interest

start.year

Optional start year (default is 1966)

end.year

Optional end year (default is most recent year of available BBS data)

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)

occ

Counts or presence/absence? (Default == presence/absence)

lon

Optional numeric vector containing maximum and minimum longitude of routes to keep

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.