title: Using if/ifelse statement with vector conditions in R
body: <p>I tried looking for an answer for this question but I'm not sure if I'm asking the question correctly in the search bar, so here it goes. I would like to create an if or ifelse statement with a logical condition based on two vectors.</p>
  
  <p>Here's a shortened version of the code:</p>
  
  <pre><code>ifelse(Vector1 == c(T,T,T),"Combo1","Combo2")
  </code></pre>
  
  <p>I created a vector called "Vector1". Its value is currently [T T F]. So in the case above, I would like an output value of "Combo2" to be printed. Instead, I am getting a vector of [Combo1 Combo1 Combo2]. So I see that it is passing those values into a vector, but I would like the ifelse statement to pass a single TRUE or FALSE value to get a single "Combo" value.</p>
  
  <p>There are 8 combinations of [T/F T/F T/F], so I'm trying to nest several of these ifelse statements together, but I figured I'd start simple.</p>
  
  <p>I tried using the if statement as well, but that didn't seem to work for me either.</p>
  
  <p>I appreciate any help.</p>