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"))
#>      code     n2     n3     n4                               name
#>    <char> <char> <char> <char>                             <char>
#> 1:   5230     52    523   5230 Paint, glass, and wallpaper stores
#>                                     num_name
#>                                       <char>
#> 1: 5230 - Paint, glass, and wallpaper stores