sample_frac.disk.frame {disk.frame} | R Documentation |
Sample n rows from a disk.frame
Description
Sample n rows from a disk.frame
Usage
## S3 method for class 'disk.frame'
sample_frac(tbl, size = 1, replace = FALSE, weight = NULL, .env = NULL, ...)
Arguments
tbl |
A data.frame. |
size |
< |
replace |
Sample with or without replacement? |
weight |
< |
.env |
DEPRECATED. |
... |
ignored |
Examples
cars.df = as.disk.frame(cars)
collect(sample_frac(cars.df, 0.5))
# clean up cars.df
delete(cars.df)
[Package disk.frame version 0.8.3 Index]