   1    1
[16,]    0    1    1    1    0    1    1    1    1
[17,]    0    0    0    0    0    0    0    1    1
[18,]    0    0    0    0    0    1    1    1    1
[19,]    0    0    0    0    1    1    1    1    1
[20,]    0    1    1    1    1    1    1    0    1</code></pre>
</div>
</div>
<div id="simulating-haploid-data-from-a-mixture-of-two-populations" class="section level2">
<h2>Simulating haploid data from a mixture of two populations</h2>
<p>Now suppose we sample from a group of individuals formed b