title: R: creating a new variable based on a boolean variable
body: <p>I have a boolean variable (e.g. x &lt;- c(T, T, F, T, F,...)) and I want to create a second variable based on my boolean variable. If x == T, then my new variable should take value "A", otherwise, it should take a value of "B". I know it seems easy, but I am new to this.</p>