Merging two binary variables into one variable with four possible values
<p>I am still new to R, so this may be a stupid question, but:</p>

<p>I have two variables (gender [0,1] and vote [0,1).</p>

<p>I want to merge the two variables into one variable with four different values:</p>

<p>1) Gender=0, Vote=0</p>

<p>2) Gender=1, Vote=0</p>

<p>3) Gender=0, Vote=1</p>

<p>4) Gender=1, Vote=1</p>

<p>I guess I will need the if command, but it somehow won't work out for me.</p>

<p>Hope, anyone can help me :)</p>