Description Usage Arguments Value Examples
Takes n
random sample from the dataframe df
without replacement
1 |
df |
Dataframe from which to sample |
n |
Integer value of number of samples to take |
Dataframe with sampled rows
1 2 3 4 | set.seed(1)
test <- data.frame(x = seq(1, 10, 1), y = rnorm(10))
test_sample <- sample_df(test, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.