standardize_soc1980_codes: Standardize US SOC 1980 codes

View source: R/soc_2010.R

standardize_soc1980_codesR Documentation

Standardize US SOC 1980 codes

Description

US SOC 1980 codes are often written in none stand form (e.g 4600 instead of 46-47). This function attempt to standardize some of the ways SOC 1980 codes are written.

Usage

standardize_soc1980_codes(codes)

Arguments

codes

vector of US SOC 1980 codes

Details

the function trims leading and trailing zeros ("up to 2 trailing zero - 20 is a valid soc code)

Value

standardized US SOC 1980 codes

Examples

standardize_soc1980_codes(c("2000",'7600'))


danielruss/socR documentation built on Dec. 9, 2024, 7:32 p.m.