context("factorize")
test_that("DataFrame", {
object <- factorize(df)
expect_s4_class(object, "DataFrame")
expect_true(
all(vapply(X = object, FUN = is.factor, FUN.VALUE = logical(1L)))
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.