Draw a random sample of rows (with or without replacement) from a Spark DataFrame.
sdf_sample(x, fraction = 1, replacement = TRUE, seed = NULL)
An object coercable to a Spark DataFrame.
The fraction to sample.
Boolean; sample with replacement?
An (optional) integer seed.
Other Spark data frames:
sdf_copy_to()
,
sdf_distinct()
,
sdf_random_split()
,
sdf_register()
,
sdf_sort()
,
sdf_weighted_sample()