sic_2digit: Convert SIC codes to 2-digit industry codes
Description
Extracts the first two characters from SIC codes to create broader
industry classifications.
Usage
sic_2digit(sic)
Value
A character vector of 2-digit SIC codes.
Arguments
sic
A numeric or character vector of SIC codes.
Details
SIC codes are hierarchical: the first two digits represent major industry
groups (e.g., "54" = Retail-Food Stores), while the full 4-digit code
provides more specific classifications (e.g., "5412" = Retail-Convenience Stores).