Find industry names and codes by searching for queried code(s) or text
Usage
sic_from_any(
query,
children = FALSE,
ignore.case = TRUE,
fixed = FALSE,
website_scrape = FALSE,
website_url = FALSE
)
Arguments
- query
query string(s) and/or number(s), vector of NAICS codes or industry names or any regular expression or partial words
- children
logical, if TRUE, also return all the subcategories - where NAICS starts with the same digits
- ignore.case
see
grepl()
- fixed
should it be an exact match? see
grepl()
- website_scrape
whether to scrape info from the NAICS website to return a table of codes and names that match (web query uses synonyms so gets more hits)
- website_url
whether to return the URL of the webpage with info on the NAICS (web query uses synonyms so gets more hits)
Value
a subset of the sictable data.table (not just the codes column)
See also
sic_subcodes_from_code()
sic_from_code()
sic_from_name()
sic_from_any()