title: Calculate cumulative binomial probability in R
body: <p>I would like to calculate the cumulative probability of a binomial series:</p>
  
  <pre><code>a=choose(5,0)*0.5^0*0.5^5
  b=choose(5,1)*0.5^1*0.5^4
  c=choose(5,2)*0.5^2*0.5^3
  d=choose(5,3)*0.5^3*0.5^2
  e=choose(5,4)*0.5^4*0.5^1
  f=choose(5,5)*0.5^5*0.5^0
  
  cumulative=sum(a,b,c,d,e,f)
  </code></pre>
  
  <p>Is there any way to do this with a single command?</p>