Find all EPA-regulated facilities nearby each specified point and distances
Source:R/PROXIMITY_FUNCTIONS.R
getfrsnearby.Rd
Given a table of frompoints (lat lon coordinates),
find IDs of and distances to all nearby points
that represent EPA-regulated facilities with locations in Facility Registry Services (FRS).
Like getblocksnearby()
but for regulated facilities in US EPA FRS
Usage
getfrsnearby(
frompoints,
radius = 3,
maxradius = 31.07,
avoidorphans = FALSE,
quadtree = NULL,
quiet = FALSE,
parallel = FALSE,
...
)
Arguments
- frompoints
used as the sitepoints param of
getblocksnearby()
- radius
passed to
getblocksnearby()
- maxradius
passed to
getblocksnearby()
- avoidorphans
passed to
getblocksnearby()
- quadtree
index that should be created by indexpoints
- quiet
passed to
getblocksnearby()
- parallel
passed to
getblocksnearby()
- ...
passed to
getblocksnearby()
- quaddatatable
optional table of topoints (in format provided by internal helper function create_quaddata() as needed).
Value
sites2points data.table one row per pair of frompoint and nearby frs point,
like output of getblocksnearby()