title: Using Logical vector for calling matrix in R
body: <p>x is a matrix as:</p>
  
  <pre><code>x &lt;- matrix(c(4,6,1,8,0,2,3,7,9), 3, 3)
  </code></pre>
  
  <p>I am unable to understand as to how the value of </p>
  
  <pre><code>x[c(TRUE,FALSE,TRUE),c(TRUE,TRUE,FALSE)]
  </code></pre>
  
  <p>is </p>
  
  <pre><code>     [,1] [,2]
  [1,]    4    8
  [2,]    1    2
  </code></pre>
  
  <p>Can anybody throw some light?</p>