context("tally")
test_that("weighted tally drops NAs (#1145)", {
df <- data_frame(x = c(1, 1, NA))
expect_equal(tally(df, x)$n, 2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.