C_hss_recode_fix: Fix recode mismatches through text replacement(s)

View source: R/C_hss_recode_fix.R

C_hss_recode_fixR Documentation

Fix recode mismatches through text replacement(s)

Description

This function is a follow-up to the recode_check function, and seeks to correct NA text mismatches. The goal of this function is to generate an updated recode_file that can be shoved back into the cleaning process. In premise, this function replaces broken recode text with updated text that is recognized as part of the OG DF.

Usage

C_hss_recode_fix(recode_checked, prep)

Arguments

recode_checked

recode_file generated after running the recode_check function

prep

code_prep file generated when filtering out _oth text at start of process

Value

A new recode file that is 'fixed' and can be inputted to the rewrite function


RenRMT/hsstools documentation built on April 14, 2025, 7:10 p.m.