3
I have a binary variable in a dataframe
, want to assign the label
"no" for the value 0 and "yes" for the value 1 without the vector becoming categorical (if this occurs, I cannot use the function svymean()
).
Does anyone know if this is possible?
Why not use the
svytable()
and then theprop.table()
to get the percentage?– Rcoster
@Rcoster, getting the percentage is not a problem, I was really curious if this way of using label was possible. Thank you.
– Henrique Pizarro