tests/testthat/test-common.R

context("common")

test_that("simplify", {
	df <- data.frame(1:10, rep(NA, 10), c(rep(NA, 9),3) )
	df2 <- data.frame(rep(NA, 10), rep(NA, 10) )
	l <- list(df, df2)
	newl <- simplify_table_list(l)
	expect_equal(length(newl), 2)
	expect_equal(ncol(newl[[2]]), 0)
	expect_equal(ncol(newl[[1]]), 2)
})

Try the interlineaR package in your browser

Any scripts or data that you put into this service are public.

interlineaR documentation built on May 1, 2019, 7:29 p.m.