Hi
Please update the convert.fromto() function to retain NAs and existing to values or values not matching the from column of the fromto.tb. For example:
theHUB::convert.fromto(responses=address.state, fromto.tb=states.tb, from="name", to="abbrev")
# [1] NA "MI" NA "OH" NA NA "ME" NA NA
YN.values
theHUB::convert.fromto(responses=YN.values.1, fromto.tb=YesNo.tb, from="long", to="short")
# [1] "N" "Y" "N" "Y" "N" "Y" "N" "N" "N" "N"
theHUB::convert.fromto(responses=YN.values.2, fromto.tb=YesNo.tb, from="long", to="short")
# [1] "N" "Y" "N" "Y" "N" "Y" "N" "N" "N" "N" NA NA NA
Hi Please update the
convert.fromto()
function to retainNA
s and existingto
values or values not matching thefrom
column of thefromto.tb
. For example:examples
address.state
YN.values
Thank you!