aa.sample() - Aster R

Teradata Aster® R User GuideUpdate 3

Product
Aster R
Release Number
7.00.02.01
Published
December 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
fop1497542774450.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
fbp1477004286096
lifecycle
previous
Product Category
Software

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.