title: Error trying to extract rows with a specific column value in r?
body: <p>Having trouble. Here's an example of my dataframe (which has 4k rows). I want to extract rows that have a certain name in the LocationID column ("D").</p>
  
  <pre><code>D, AWC_Code
  Yukon, 2
  Unimak, 3
  Taku River, 4
  Banana, 5
  Tailgate, 6
  </code></pre>
  
  <p>However I keep getting an error when I use this script. Thoughts?</p>
  
  <pre><code>awc3 &lt;- awc2[ D == "Unimak" | D == "Taku River" ]
  
  Error in D == "Unimak" : 
  comparison (1) is possible only for atomic and list types
  </code></pre>