title: How to remove rows in a dataframe that contain certain words in R?
body: <p>I'm trying to remove rows in my dataframe that contain a certain word or certain sequences of words. for example:</p>
  
  <pre><code>mydf &lt;- as.data.frame(read.xlsx("C:\\data.xlsx, 1, header=T"))
  head(df)
  #     NO    ARTICLE    
  # 1   34    New York Times reports blabla
  # 2   42    Financial Times reports blabla
  # 3   21    Greenwire reports blabla
  # 4    3    New York Times reports blabla
  # 5   46    Newswire reports blabla
  </code></pre>
  
  <p>I want to remove the rows that contain the string "New York Times" and "Newswire" from my <code>data.frame</code>. I have tried different approaches using <code>%in%</code> or <code>grep</code>, but I'm not quite sure how to use this!</p>
  
  <p>How do I do that? </p>