Use the aa.sample() function to draw rows randomly from the input table. The function offers two sampling schemes:
- A simple Bernoulli (Binomial) sampling on a row-by-row basis with given sample rates.
- Sampling without replacement that selects a given number of rows.
The sampling can be applied to the entire relation, which is called unconditional sampling, or be refined with conditions, which is called conditional sampling.