Get the multiples of 5 out of a list
<p>Im look for a function through which I can get all the multiples of 5 in a list.
So if I have a list like this:</p>

<pre><code>inds &lt;- c(5,6,7,10)
</code></pre>

<p>The output should be</p>

<pre><code>5,10
</code></pre>

<p>I try to do this using:</p>

<pre><code>inds[which(3%%5 == 0),]
</code></pre>

<p>But this trows an error. Any thoughts on what goes wrong here?</p>