How to use sample() in R : <p>Suppose that there is a bag of 20 marbles, 12 white (“1”) and 8 black “0”. Using the sample() function create a sample of size n=5 without replacement.</p>

<p>RStudio always tell me that there is an error that cannot take a sample larger than the population when 'replace = FALSE'</p>
