title: A way append results when mutiple conditions are met
body: <p>I provided two rows of my dataset below. In the dataset, I have a text column, and I have certain keywords that I need to look up in this text column, there is about 20 keyword searches I need to perform, and the text column may contain none of them keywords but may include all of them ( I only provided two keywords searches below). At the end of this, I need a new column called actual_tag that tells me which keywords the text column contains.</p>
  <p>I know how to make the keywords as columns but I need to just have one column to tell the user which keywords it contained without writing too many if statements etc...  is there an easy way to do this?</p>
  <pre><code>df=data.frame(text=c(&quot;the discrepency between the two items are great&quot;,&quot;there is discrepency between the calib&quot;), 
                    actual_tag=c('discrepency','discrepency, calib'))
  
  df2=df%&gt;%mutate(discrepency=str_detect(text,'discrepency'),
                 calib=str_detect(text,'calib'))
  </code></pre>