Multiple strings with str_detect R
<p>I want to find multiple strings and put it in a variable, however I keep getting errors.</p>

<pre><code>queries &lt;- httpdf %&gt;% filter(str_detect(payload, "create" || "drop" || "select"))
Error: invalid 'x' type in 'x || y'

queries &lt;- httpdf %&gt;% filter(str_detect(payload, "create" | "drop" | "select"))
Error: operations are possible only for numeric, logical or complex types

queries1 &lt;- httpdf %&gt;% filter(str_detect(payload, "create", "drop", "select"))
Error: unused arguments ("drop", "select")
</code></pre>

<p>None of these worked. Is there another way to do it with <code>str_detect</code> or should i try something else? I want them to show up as in the same column as well.</p>