```
context("Rarefaction")
mat <- rbind(c(1,1), c(1,1))
res1 <- ec_rarefaction(mat, 1)
res2 <- ec_rarefaction(mat, 5)
test_that("expected dimensions", {
expect_true(all(dim(res1) == c(2,1)))
expect_true(all(dim(res2) == c(2,5)))
})
test_that("expected value", {
expect_true(all(res1 == matrix(2,2,1)))
expect_true(all(res2 == matrix(2,2,5)))
})
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.