sample_frac.disk.frame | R Documentation |
Sample n rows from a disk.frame
## S3 method for class 'disk.frame'
sample_frac(tbl, size = 1, replace = FALSE, weight = NULL, .env = NULL, ...)
tbl |
A data.frame. |
size |
< |
replace |
Sample with or without replacement? |
weight |
< |
.env |
DEPRECATED. |
... |
ignored |
cars.df = as.disk.frame(cars)
collect(sample_frac(cars.df, 0.5))
# clean up cars.df
delete(cars.df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.