context("comparing factor() and as.is()")
test_that("same options other than level order",{
x <- c("a","b","g","g","f","c","c","c")
y <- as.is(x,labels = "letter")
z <- factor(x,unique(x),labels = "letter")
expect_identical(y,z)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.