title: How sample data that has to be distributed in different criteria
body: <p>I am looking for a way to sample data using 2 different criterias, is there anyone who can assist?</p>
  
  <p>I have this that that I have clean with 2000 records. I would like to sample 100 clients distributed at 80% employed and 20 % self employed, furthermore on I have to apply another criteria. Each of the employed and self_employed sample will have to be further distributed by profession, 20% Lawyers, 10% Doctors, 50% Engineers and 20% Accountants.</p>
  
  <p>this is what the data looks like:</p>
  
  <pre><code>Client ID | self employed | Profession
  123456    | yes           |lawyer
  123457    | no            |doctor
  123458    | yes           |accountant
  123459    | yes           |accountant
  123460    | yes           |engineer
  123461    | yes           |lawyer
  123462    | no            |engineer
  123456    | yes           |doctor
  123456    | yes           |lawyer
  123456    | yes           |engineer
  </code></pre>