Skip to contents

Given 3-digit SIC code, for example, get all SIC that start with those digits.

Usage

sic_subcodes_from_code(mycodes)

Arguments

mycodes

SIC codes vector, of 2 to 4 digits each. See https://siccode.com

Value

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

Details

similar idea was naics2children() but this is more robust See sic_from_any() which uses this

See also

Examples

  # codes starting with '07'
  sic_subcodes_from_code('07')
  # codes starting with '078'
  sic_subcodes_from_code('078')