View source: R/sdf_interface.R
sdf_sample | R Documentation |
Draw a random sample of rows (with or without replacement) from a Spark DataFrame.
sdf_sample(x, fraction = 1, replacement = TRUE, seed = NULL)
x |
An object coercable to a Spark DataFrame. |
fraction |
The fraction to sample. |
replacement |
Boolean; sample with replacement? |
seed |
An (optional) integer seed. |
Other Spark data frames:
sdf_copy_to()
,
sdf_distinct()
,
sdf_random_split()
,
sdf_register()
,
sdf_sort()
,
sdf_weighted_sample()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.