Nothing
df <- data.frame(v1 = c("a", "a", "b"),
v2 = c("a", "a", "b"),
v3 = c("a", "a", "b"),
stringsAsFactors = FALSE)
test_that("tableUnlist", {
out <- tableUnlist(df)
expect_equal(out["a"], c(a = 6))
expect_equal(out["b"], c(b = 3))
})
### test fuer warnings
test_that("tableUnlist warnings", {
expect_message(tableUnlist(dataFrame=as.matrix(df)), "Convert 'dat' of class 'matrix', 'array' to a data.frame.")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.