My dependent variable looks like this:
$ dpnm : int 1 1 0 0 0 0 0 0 0 0 ...
And I want to convert the 1s int "Yes" and the 0s into "No"
I have tried:
default$dpnm <- revalue(default$dpnm , c(1 = "Yes"))
default$dpnm <- revalue(default$dpnm , c(0 = "No"))
TRUEandFALSE.default$dpnm <- default$dpnm == 1