Description Usage Arguments Value Note See Also Examples
Returns a stratified sample without replacement based on the fraction given on each stratum.
1 |
x |
A spark_tbl |
col |
column that defines strata |
fractions |
A named list giving sampling fraction for each stratum. If a stratum is not specified, we treat its fraction as zero. |
seed |
random seed |
A new spark_tbl that represents the stratified sample
sampleBy since 1.6.0
Other stat functions:
approxQuantile()
,
corr()
,
covariance()
,
crosstab()
,
freqItems()
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.