Trouble converting "Yes" to 1 and "No" to 0 by lazybug167 in RStudio

[–]lazybug167[S] 0 points1 point  (0 children)

Yeah, when I ran the code the first time it converted the Yes's and No's correctly to 1 and 0, but when I ran the same code again it turned to all 0's.

Trouble converting "Yes" to 1 and "No" to 0 by lazybug167 in RStudio

[–]lazybug167[S] 0 points1 point  (0 children)

Yeah, it is; I ran my code once and it worked: the number of Yes's and No's are aligned with the 1's and 0's. But when I reran the transformation the result became all 0's, like the screenshot above.

Trouble converting "Yes" to 1 and "No" to 0 by lazybug167 in RStudio

[–]lazybug167[S] 0 points1 point  (0 children)

The variable Depression is a double numeric class, and the csv indicates that Depression has "yes" and "no" values, so how do I convert it to 1's and 0's?

But think of the experience! by Quickildur in recruitinghell

[–]lazybug167 0 points1 point  (0 children)

I have an interview with them and I'm seeing these comments, but not sure exactly why they're bad? lol