title: Error: Length of logical index vector must be 1 or 10 (the number of rows), not 47428
body: <p>Attempting to delete rows containing specific strings in R (as shown in this answer: <a href="https://stackoverflow.com/questions/22249702/delete-rows-containing-specific-strings-in-r">Delete rows containing specific strings in R</a>)</p>
  
  <p>Am consistently getting this error: </p>
  
  <blockquote>
    <p>Error: Length of logical index vector must be 1 or 10 (the number of
    rows), not 47428</p>
  </blockquote>
  
  <p>Any help would be most appreciated!</p>
  
  <pre><code>Reviews&lt;- Reviews[!grep("dog", Reviews$Text)]
  </code></pre>