 <p>You can use which.</p> <pre><code>desireDf &lt;- df[ which( df$CATEGORY=="over 10 mio" &amp; (df$COUNTRY=="Germany" | df$COUNTRY=="Sweden" )), ] </code></pre> <p>Also it works without which:</p> <pre><code>desireDf &lt;- df[ (df$CATEGORY=="over 10 mio" &amp; (df$COUNTRY=="Germany" | df$COUNTRY=="Sweden")), ] </code></pre>