Find registry ids of EPA-regulated facilities in FRS by NAICS code (industrial category) Like latlon_from_naics() but returns only regid
Source:R/latlon_from_naics.R
regid_from_naics.Rd
Find registry ids of EPA-regulated facilities in FRS by NAICS code (industrial category) Like latlon_from_naics() but returns only regid
Arguments
- naics
a vector of naics codes, or a data.table with column named code, as with output of
naics_from_any()
- children
optional logical. Must set to TRUE to get facilities whose NAICS starts with provided naics (or naics based on provided title) rather than only exact matches. Many facilities have only a longer more specific NAICS code listed in the FRS, such as a 6-digit code, so if the category (e.g., 4-digit) is queried then children = TRUE has to be specified to find all the sites within that overall category.
- id_only
optional, only for backward compatibility
- ...
passed to
naics_from_any()
Value
vector of registry ID values of facilities in EPA FRS
that are listed there as being in this/these NAICS,
like latlon_from_naics()
but with id_only = TRUE
Details
Finding the right NAICS/SIC and finding all the right
sites is complicated. See discussion of latlon_from_naics()
.