getRouteInfo: Download route information from USGS server

Description Usage Arguments Value Examples

View source: R/getRouteInfo.R

Description

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

Usage

1
2
3
getRouteInfo(routesFile = "routes.zip",
  routesDir = "ftp://ftpext.usgs.gov/pub/er/md/laurel/BBS/DataFiles/",
  RouteTypeID = 1, Stratum = NULL, BCR = NULL)

Arguments

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.

routeDir

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

routeFile

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

Value

If download successful, a dataframe with the results.

Examples

1
2
3
4
5
6
# download BBS route data.

## Not run: 
RouteInfo <- getRouteInfo()

## End(Not run)

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