context("frequent table for factors")
test_that("frequent table for factors", {
x <- iris$Species
xdf <- dplyr::data_frame(x)
z<-dplyr::count(xdf, x)
expect_identical(freq_out(x), z)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.