sample-datatable adaptor samples rows in a datatable.
Sampling method provided are first, random or last, it will default to first if unspecified.
data
Type: datatable
Required: Yes
The datatable to be sampled.
sampling method
Type: text
Required: No
The sampling method to be used. Valid values are first, random, or last. If unspecified, defaults to first
sample size
Type: text
Required: No
The number of rows to be included in the sample. If unspecified, defaults to 100
sample data
Type: datatable
A datatable with the sampled rows.
Example 1: Default behaviour.
data:
sampling method: null (empty)
sample size: null (empty)
data:
-> Sampled datatable with default sample size 100.
Example 2: Sample datatable with specified sampling method.
data:
sampling method: last
sample size: 3
data:
-> Sampled datatable with sample size 3 and sampling method last.
Create smaller datasets for testing downsteam applications before using a large dataset.