set.seed(4)
test_that("'average_fre_z()' calculates the expected
z_score of -0.2979435", {
expect_equal(
average_fre_z(bodyweight, obs, reps = 10) %>%
dplyr::mutate(z_score = round(z_score, digits = 4)) %>%
dplyr::select(z_score) %>%
dplyr::pull(), -0.2979)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.