View source: R/sample_compliment.R
sample_compliment | R Documentation |
Designed to work in tandem with sample_rows
to return
a complimentary data set to a sample from an original set.
sample_compliment(orig = NULL, samp = NULL)
orig |
an object; the original/complete data set being sampled |
samp |
an object; a subset, randomly sampled from the |
iris_test <- sample_rows(iris, floor(0.2 * nrow(iris)), 1, replace = FALSE) iris_train <- sample_compliment(orig = iris, samp = iris_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.