getDataBBS: Download USGS Breeding Bird Survey data

Description Usage Arguments Value Examples

View source: R/getDataBBS.R

Description

This function was adapted from **oharar/rBBS** package.

Usage

1
2
3
getDataBBS(file,
  dir = "ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/States/",
  year = NULL, aou = NULL, countrynum = NULL, states = NULL)

Arguments

file

One file name including the .zip extension ("stateX.zip"). Preferably download a single state at a time, otherwise run time will take >1 minutes.

dir

URL to the StatesFiles.

year

Vector of years. Default = NULL (all years).

aou

Vector of AOU numeric codes. Default = NULL (all species). (For species list visit the BBS [FTP site]("ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/SpeciesList.txt").

countrynum

Vector of country ID #'s. Default = NULL (all countryNums).

states

Vector of state names Default = NULL (all states).

Value

If download successful, a dataframe with the results.

Examples

1
2
3
4
5
6
# download all species and years from Nebraska.

## Not run: 
NE <- getDataBBS(file = "Nebrask.zip")

## End(Not run)

TrashBirdEcology/bbsRDM documentation built on July 21, 2019, 2:18 a.m.