strat_sampling | R Documentation |
Common stratified sampling technique
strat_sampling(
df,
group_var,
size,
replace = TRUE,
contain0 = FALSE,
verbose = TRUE,
method = c("round", "floor", "ceiling"),
seed
)
df |
data.table object |
group_var |
group variable |
size |
sampling size |
replace |
replacement |
contain0 |
non-sampling |
verbose |
messages |
method |
messages |
seed |
random seed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.