title: Multi conditional with double conditional in R
body: <p>I have a with a statement with multiple conditionals like below</p>
  
  <pre><code>with(x_in
    [
      x_in$Power_KW &lt; 1700 
      &amp; x_in$Power_KW  &gt; 0 
      &amp; x_in$Power_KW  &lt; x_in$Expected_Power_KW*1.1 
      &amp; x_in$Power_KW  &gt; x_in$Expected_Power_KW*.9
    ,], 
  
      plot(x_in$Wind_Speed_, x_in$Power_KW ,col="gray48"
        ,main= titlename, col.main = "black", cex=.5,pch=16
        ,col.lab="black",col.axis = 'black',cex.lab=1.25
        ,xlim=c(0, 25), ylim=c(0, 1800))
      )
  </code></pre>
  
  <p>This works perfectly fine, but I need to add an additional condition where I filter additional data where both "Wind_Speed_" is greater than 12 and the "Power_KW" is greater than 1550. Both of these must be true for additional filtering. </p>
  
  <p>I  know there needs to be an additional AND statement but I don't know how to do it with multiple true conditions. I tried looking into using <code>exists</code>, but I don't think I know the syntax, or how it exactly works. This might also not be the best way to handle the problem.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: To addtional clarity - I only want to filter out data for "Power_KW" that is less than 1550 ONLY IF the "Wind_Speed_" is greater than 12. If "Wind_Speed_" is less than 12 I don't want anything done to it.</p>