Is this R bug real? : <p>I am quite confused... and thinking is this bug real? How can it be?
I just want to make a vector of 0's and 1's.</p>

<p>Here's the source and the outcome</p>

<pre><code>n.subj=1000
prop.aber = 0.9
n.measure = 3
n.subj.norm = n.subj*(1-prop.aber)
n.subj.aber = n.subj*prop.aber
labE &lt;- rnorm(n.subj*n.measure, 0, 1)
labT_ &lt;- c(rep(0, n.subj.norm), rep(1, n.subj.aber)); length(labT_)
sum(labT_ == 0); sum(labT_ == 1)


[1] 99
[1] 900 
</code></pre>

<p>My common sense tells me that it should be 100 and 900!!!!!!?!?!?????</p>
