recode_skd: Recodes known old and wrong SKD codes

View source: R/import.R

recode_skdR Documentation

Recodes known old and wrong SKD codes

Description

Sometimes old SKD codes are used instead of new ones. When these old ones don't exist in the new classification, we can flag them and replace them with the correct ones. This says nothing about the cases where old codes are used and there is no way for us to know.¯\_(ツ)_/¯ Additionally, some inputs might have a 4-digit skd code with the leading 0 missing. This function tacks the 0 back on.

Usage

recode_skd(df)

Arguments

df

data frame output of fix_types or data frame output of remove_na_rows

Value

data frame with same dimensions as input


majazaloznik/ddvR documentation built on Feb. 13, 2025, 12:32 p.m.