title: Calculating simple probability in R
body: <p>I have just started with R and am having trouble with how to enter a seemingly very simple probability question in R. The question is:</p>
  
  <p>There is a big court case, and 20% of the adult population believe the accused is innocent prior to jury selection. Assume that the 12 jurors were selected randomly and independently from the population.</p>
  
  <ul>
  <li><p>Find the probability that the jury has at least one member who believe in the accused's innocence prior to jury selection (hint: define the binomial (12,.2) random variable X to be the number of jurors believing in the accused's innocence).</p></li>
  <li><p>Find the probability that the jury had at least two members who believed in the accused's innocence (hint: <code>P(X ≥ 2) = 1-P(X ≤ 1)</code>, and <code>P(X ≤ 1) = P(X=0) + P(X=1)</code>).</p></li>
  </ul>
  
  <p>I know that the <code>dbinom(1,12,.2)</code> will give me the probability of exactly one jury member believing in the accused's innocence, but I am unsure what code to enter for "at least," since this is how the question is phrased. I assume once I am able to calculate "at least" for one jury member, the same code will apply for the second question.  The hint for the second question is throwing me off, however.</p>
  
  <p>This is certainly a stupid and simple question, but any and all help would be greatly appreciated!</p>