Nothing
test_that("cvar computes 100*sd/mean and handles simple vectors", {
x <- c(1,2,3,4,5)
expect_equal(cvar(x), 100*sd(x)/mean(x))
# Numeric scalar
expect_type(cvar(x), "double")
# Positive values lead to non-negative CV
y <- rexp(100, rate = 2)
expect_gte(cvar(y), 0)
})
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.