Skip to contents

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

Usage

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

Arguments

mynames

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

children

logical, if TRUE, also return all the subcategories - where SIC starts with the same digits

ignore.case

see grepl()

fixed

should it be an exact match? see grepl()

Value

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

Examples

 data.table::fintersect(sic_from_any( "glass"), sic_from_any("paint"))