samplingRandomStratified

fun samplingRandomStratified(n: Int, seed: Int? = null, minSubsample: Int? = null): SamplingOptions

Randomly sample from each stratum (subgroup).

Examples

Parameters

n

Number of items to return.

seed

Number used to initialize a pseudo random number generator.

minSubsample

Minimal number of items in sub sample.