title: How to declare a vector of zeros in R
body: <p>I suppose this is trivial, but I can't find how to declare a vector of zeros in R. </p>
  
  <p>For example, in Matlab, I would write:</p>
  
  <pre><code>X = zeros(1,3);
  </code></pre>