I have a boolean variable (e.g. x <- 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.
if...else...question. Please see a guide onrand search forif...else...and you will find many examples and explanations on how to do what you want.