title: Removing diagonal elements from matrix in R
body: <p>How can I remove the diagonal elements (diagL) from my matrix L using R? I tried using the following:</p>
  
  <pre><code>subset(L, select=-diag(L)) or
  subset(L, select=-c(diag(L)))
  </code></pre>
  
  <p>but I get 0 numbers...</p>