context("Reductions")
test_that("freq returns correct count", {
setosa_count <- iris %>%
freq("Species") %>%
dplyr::filter(Species == "setosa") %>%
.$n
expect_equal(setosa_count, 50)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.