title: What's the easiest way for the multiple if-else conditions?
body: <p>I have a data set something like this:</p>
  
  <pre><code>df_1 &lt;- tribble(
    ~A,   ~B,  ~C,  
    10,   10,  NA,        
    NA,   34,  15,       
    40,   23,  NA,
     4,   12,  18,
  )
  </code></pre>
  
  <p>Now, I just want to compare A, B, C for each row, and add a new column that shows us the minimum number. Let's see how desired data looks like:</p>
  
  <pre><code>df_2 &lt;- tribble(
    ~A,  ~B,  ~C,  ~Winner,
    10,  10,  NA,  "Same",     
    NA,  34,  15,  "C",     
    40,  23,  NA,  "B",   
     4,  12,  18,  "A",
  )
  </code></pre>
  
  <p>There are four outputs: Same, A-Win, B-Win, C-Win. </p>
  
  <p>How would you code to get this result?</p>
  
  <p>Thanks in advance. </p>