title: Why "FALSE" becomes a zero when assigned as part of a vector
body: <p>Why, in R, is it that:</p>
  <pre class="lang-r prettyprint-override"><code>a &lt;- FALSE
  a
  #&gt; [1] FALSE
  </code></pre>
  <p>But</p>
  <pre class="lang-r prettyprint-override"><code>b &lt;- c(FALSE, 1)
  b
  #&gt; [1] 0 1
  </code></pre>
  <p>Isn't <code>a</code>, a vector of length one? Why the behavior differs for a vector of length two?</p>
  <p>Is this because all vector elements must be of the same type?</p>
  <p><sup>Created on 2021-03-26 by the <a href="https://reprex.tidyverse.org" rel="nofollow noreferrer">reprex package</a> (v0.3.0)</sup></p>