title: Calculate probabilities in R programming
body: <p>I'm new to R and I'm doing a practice question on it.
  Calculate the probability of drawing two face cards (Jack, Queen, King) in a row.
  Simulate a standard deck of 52 cards (no Jokers). Sample two cards from the deck 1000 times (remember, we do not replace the card after drawing). How does the proportion of times two face cards were drawn compare to the probability you calculated?
  This is what I tried:</p>
  <pre><code> poker &lt;- c(1:10, &quot;J&quot;, &quot;Q&quot;, &quot;K&quot;)
   
   poker_face &lt;- sample(poker, size = 1000, replace = FALSE)
  </code></pre>
  <p>it gives me:</p>
  <blockquote>
  <p>Error in sample.int(length(x), size, replace, prob) :    cannot take a
  sample larger than the population when 'replace = FALSE'</p>
  </blockquote>