7.00.02.01 - aa.sample() - Aster R

Teradata Aster® R User GuideUpdate 3

prodname
Aster R
vrm_release
7.00.02.01
created_date
December 2017
category
Programming Reference
User Guide
featnum
B700-1033-700K

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.