Currently, recode_labels() is not very readable and probably more complex than it should be.
It should be also adressed that errors and warnings should be meaningful for both applyChangeMeta() as well as recodeGADS(). See, for instance,
stop("Duplicated values in 'value_new' causing conflicting meta data in variable ", var_name, ": ",
paste(dup_recode_values, collapse = ", "), ". Use existingMeta = 'drop' or 'ignore' to drop all related meta data.")
Currently,
recode_labels()
is not very readable and probably more complex than it should be.It should be also adressed that errors and warnings should be meaningful for both
applyChangeMeta()
as well asrecodeGADS()
. See, for instance,