How to split a variable into 2 separate variables in r?

Viewed 24

I need to split a variable, gender, into 2 separate variables so I can evaluate other variables based on male/female. I have tried functions like separate() but I have not figured out how to evaluate male/female separately. Thanks for any help, I'm new to r.

0 Answers
Related