powered by
Repeating Sampling from a Tibble
rep_sample_n(tbl, size, replace = FALSE, reps = 1)
tbl of data.
The number of rows to select.
Sample with or without replacement?
The number of samples to collect.
A tbl_df that aggregates all created samples, with the addition of a replicate column that the tbl_df is also grouped by
replicate
# NOT RUN { data(nc) rep_sample_n(nc, size=10, replace=FALSE, reps=1) # }
Run the code above in your browser using DataLab