Skip to contents

query by parts of words, etc. in the industry name.

Usage

naics_from_name(mynames, children = FALSE, ignore.case = TRUE, fixed = FALSE)

Arguments

mynames

query string, vector of NAICS industry names or any regular expression or partial words. See https://naics.com

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()

Value

a subset of the naicstable data.table (not just the codes column)

Details

See naics_from_any() which uses this

Examples

 data.table::fintersect(naics_from_any( "manufac"), naics_from_any("chem"))