Skip to contents

Find industry names and codes by searching for queried code(s) or text

Usage

naics_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 naicstable data.table (not just the codes column)

Details

Finding the right NAICS/SIC and finding all the right sites is complicated. See discussion of latlon_from_naics().

Examples