title: R table function not showing zeroes
body: <p>I'm kind of ignorant on the topic so it might be a simple mistake, but I have used cutpoints and then i'm trying to print a table with the sum of elements in each bracket, but one has zero in it and it just disappears. I've seen similar problems solved with &quot;factor&quot;, but I don't know how to make it work with cutpoints.
  This is the full code:</p>
  <pre><code>nrep&lt;-100000
  lambda&lt;-1/6
  m&lt;-1/lambda
  set.seed(229985)
  x&lt;-rexp(nrep,1/m)
  brk&lt;-seq(0,80,8)
  xx &lt;- cutpoints(x,brk, destra = TRUE)
  #
  c(mean(x),m)
  c(var(x),m^2)
  c(median(x),m*log(2))
  c(min(x),max(x))
  #
  fo&lt;-table(xx)
  sum(fo)
  fo
  #
  p&lt;-pexp(brk,lambda)
  fa&lt;-diff(p)*nrep
  sum(fa)
  cbind(fo,round(fa,1))
  chi2(fo,fa)
  </code></pre>
  <p>Thank you in advance,
  Riccardo</p>