find_refuges: Find refuges available for query or matching a particular...

Description Usage Arguments Value Examples

View source: R/find_refuges.R

Description

Find refuges available for query or matching a particular partial refuge name.

Usage

1
find_refuges(refuge = NULL, ptype = "NWR", region = 1:8L)

Arguments

refuge

character string scalar or vector (i.e., multiple entries allowed) with which to search and return valid refuge identifiers for species occurrence queries. Default ('NULL') returns all available refuges. Case-insensitive search. See examples.

ptype

character string scalar or vector of types of USFWS properties to search. Default is to search for National Wildlife Refuges only ('ptype = "NWR"'). Other viable options include "WPA" (Waterfowl Production Area), "WMA" (Wildlife Management Area), "FSA" (Farm Service Agency), and "NFH" (National Fish Hatchery). Multiple options are permissible.

region

integer vector indicating which USFWS Region to search; see https://www.fws.gov/where; valid values range from 1 to 8

Value

character scalar or vector of proper organizational name (ORGNAME) for USFWS properties meeting the search criteria. This output can be passed directly to nwr_spp as the 'refuge' argument.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# Get all National Wildlife Refuges
all_refs <- find_refuges()

# Search for refuges using a partial name match
ml <- find_refuges("longleaf")

# Search for refuges matching multiple strings
multi <- find_refuges(c("longleaf", "romain"))

# Return all southeast (region 4) refuges
r4 <- find_refuges(region = 4)

# Return all mountain-prairie (region 6) refuges and waterfowl production areas
r6 <- find_refuges(ptype = c("NWR", "WPA"), region = 6)

## End(Not run)

adamdsmith/nwrspp documentation built on Sept. 26, 2017, 4:14 p.m.