| with_hierarchy | R Documentation |
Join hierarchy to input_data, yielding additional columns ending in h1, h2, h3, etc.
with_hierarchy(
input_data,
using = NULL,
depth = NULL,
...,
warn_missing = FALSE,
verbose = getOption("verbose")
)
input_data |
tabular data |
using |
tabular data, OR the name of a |
depth |
(integer) use at most this many levels |
warn_missing |
(logical) warn if any records in |
verbose |
(logical) |
There must exist key column(s) in input_data (e.g. cat_id or pol_id) matching the key column(s) in using.
If using is a filename/path, then import_hierarchy() will be used to import, tidy, reshape, and validate it.
For historical reasons, with_hierarchy() effectively defaults to with_category_hierarchy(using = t1327).
inventory::with_category_hierarchy()
inventory::with_pollutant_hierarchy()
inventory::with_SIC_hierarchy() and the OSHA SIC system (search)
inventory::with_SCC8_hierarchy(), with_SCC8_hierarchy(), and the EPA SCC system (search)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.