Alternate to match function in R that returns list of indexes : <p>I am using <code>R 3.5</code><br>
I want to get all indexes that contain zero in my list</p>

<pre><code>a = c(1,2,3,0,5,7,0)
</code></pre>

<p>result should be</p>

<pre><code>[1] 4 7
</code></pre>

<p>should return the indexes as <code>match</code> will only return the first index in this case <code>4</code></p>
