how to remove several positions in an array : <p>I want remove specific positions in an array (I saw similar question, but removing values, not the positions), and I'm having some problems. Let's say I have:</p>

<pre><code>                  myval &lt;- runif(1:1805)
                  pos   &lt;- c(240,601,962,1323,1684)  #positions to remove
</code></pre>

<p>if I do:         </p>

<pre><code>                  myval[pos] &lt;- NULL 
</code></pre>

<p>it doesn't work..
And neither with    </p>

<pre><code>                  myval[myval!=myval[pos]]
</code></pre>

<p>Any suggestion??</p>

<p>Thanks!</p>
