title: Comparing characters(factors) in multiple columns
body: <p>I have a data frame that contains proteins with different localisation annotations from multiple databases. I would like to compare those entries for each protein (row) and write the result into a new col with the original entry if they agree and "disagreement" if an entry differs in the cols.</p>
  
  <p>I suppose the answer has an easy solution but I didn't find it yet, any help is much appreciated!
  If possible I would appreciate a tidyverse solution :)</p>
  
  <p>Thanks!</p>
  
  <p>Sebastian</p>
  
  <pre><code>start_df &lt;- data.frame(protein = c("A", "B", "C", "D"),
               location_1 = c("membrane", "membrane", "nucleus", "mito"),
               location_2 = c("membrane", "nucleus", "nucleus", "membrane"),
               location_3 = c("membrane", "membrane", "nucleus", "membrane"),
               location_4 = c("membrane", "membrane", "nucleus", "mito"))
  
  expectation &lt;- data.frame(protein = c("A", "B", "C", "D"),
               location_1 = c("membrane", "membrane", "nucleus", "mito"),
               location_2 = c("membrane", "nucleus", "nucleus", "membrane"),
               location_3 = c("membrane", "membrane", "nucleus", "membrane"),
               location_4 = c("membrane", "membrane", "nucleus", "mito"),
               location_all = c("membrane", "disagrement", "nucleus", "disagrement"))
  </code></pre>