# NOT RUN {
sample_n_dt(mtcars, 10)
sample_n_dt(mtcars, 50, replace = TRUE)
sample_frac_dt(mtcars, 0.1)
sample_frac_dt(mtcars, 1.5, replace = TRUE)
sample_dt(mtcars,n=10)
sample_dt(mtcars,prop = 0.1)
# }
Run the code above in your browser using DataLab