I have a string variable with 3 categories (0,1,NA). I would like to desiring the variable, and change NA to missing.

I also have a string variable with 3 categories (FALSE, TRUE, and NA). I would like to destring and change False=0, True=1 and NA=.

Any help with coding is appreciated.