# Tests for filterMiss
test <- matrix(c(1, 2, 1, 0 , 3, 1, 0, 0 ,0, 0, 3, 0), ncol = 3)
test_that("filterMiss removes snps with more than a specified missing rate",
{
expect_equal(filterMiss(test, 0.4), 1:4)
expect_equal(filterMiss(test, 0.1), c(2, 4))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.