title: Distribution of cards(simulation in r)
body: <p>This is a vector of cards:</p>
  
  <pre><code>Cards
   [1]  2  3  4  5  6  7  8  9 10 11 12 13 14  2  3  4  5  6  7  8  9 10 11 12 13 14  2  3  4  5  6  7  8  9
  [35] 10 11 12 13 14  2  3  4  5  6  7  8  9 10 11 12 13 14
  </code></pre>
  
  <p>1:14 - cards values:</p>
  
  <p>I want to distribute this cards among 2 players: 26 cards for both of them.</p>
  
  <pre><code>hand_1 &lt;- sample(cards,size = length(cards)/2)
  </code></pre>
  
  <p>this is a hand for player 1.</p>
  
  <p>How can I get the hand for player 2 correctly? I need somehow delete all elements from <code>cards</code>, that exist in <code>hand_1</code>. How can i do this without using loop technique.</p>