filter_facilities: Filter and (re)name facilities

filter_facilitiesR Documentation

Filter and (re)name facilities

Description

This really helps when the same facility changes IDs. You provide a named list, where the elements of the list are vectors of one or more (DataBank) facility IDs that all "should be counted as" the corresponding name.

Usage

filter_facilities(
  input_data,
  ...,
  .name = "facility",
  verbose = getOption("verbose")
)

Arguments

input_data

(tabular data)

...

either an (optionally named) vector or list of category IDs, or a tabular dataset having a column cat_id.

.name

if the dot-args (above) are named, then the names will be used to populate a column in the result. .name will be that column's name.

Details

Specifics may depend on your intent, but some commonly referenced "sets" are provided for you by the inventory package:

  • DST_REFINING_FACILTIES

  • DST_LANDFILL_FACILITIES

  • DST_POWER_FACILITIES

Note

input_data must contain column fac_id

See Also

filter_categories()

filter_pollutants()

find_facility_ids()

with_facility_name()

with_IRIS_site()


BAAQMD/tbltools documentation built on Feb. 29, 2024, 5:45 a.m.