test_that("distribution works", {
data(survey, package = "MASS")
set.seed(4565)
columns <- c("Sex", "Age", "Smoke")
nas <- c(137, 70)
index <- design(pheno = survey[-nas, columns], size_subset = 70,
iterations = 10)
batches <- inspect(index, survey[-nas, columns])
expect_true(distribution(batches, "Sex"))
expect_true(distribution(batches, "Smoke"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.