test_that("PercentAbove",{
expect_equal(
object = PercentAbove(x = seq(10), threshold = 5),
expected = 50
)
expect_equal(
object = PercentAbove(x = seq(10), threshold = 2),
expected = 80
)
expect_equal(
object = PercentAbove(x = seq(10), threshold = 6),
expected = 40
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.