importDataBBS: A wrapper function for downloading raw data, filtering by...

Description Usage Arguments Value

View source: R/importDataBBS.R

Description

Some parts of this function were borrowed from **oharar/rBBS**.

Usage

1
2
3
4
importDataBBS(file, dir, year = NULL, aou = NULL, countrynum = NULL,
  states = NULL, routesFile = "routes.zip",
  routesDir = "ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/",
  RouteTypeID = 1, Stratum = NULL, BCR = NULL)

Arguments

file

The name of the zipfile to be downloaded from dir

dir

http:// pr ftp:/ link to bbs data location (here: state files)

year

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

aou

Vector of AOU #s Default = NULL (all species).

countrynum

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

states

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

RouteTypeID

One or more numbers indicating route substrate (1=roadside;2=water;3=off-road; Default = 1, roadside only).

Stratum

A vector of BBS physiographic stratum codes by which to filter the routes.

BCR

A vector of Bird Conservation Region codes where by which to filter the routes.

zipFileNames

One or more file names ("state.zip"), char vector. Preferably download a single state at a time, otherwise run time will take >1 minutes.

countryName

Vector of country names. Default = NULL (all countryNames).

regions

Vector of regionCodes. Default = NULL (all regions).

routeDir

Location of the routes.zip folder Should be in DatFiles folder (default).

routeFile

Name of the route information file. Usually "routes.zip".

Value

A dataframe


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