context("Binding Factors")
test_that("fbind binds factors or (or character)",{
a <- iris$Species[c(1,51,101)]
b <- PlantGrowth$group[c(1,11,21)]
res <- fbind(a,b)
expect_identical(res,factor(c(levels(iris$Species),
levels(PlantGrowth$group))))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.