test_that("reverses levels", { f1 <- factor(c("a", "b", "a")) f2 <- fct_rev(f1) expect_equal(levels(f2), c("b", "a")) })
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.