1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-27 08:46:12 +01:00
AMR/tests/testthat/test-kurtosis.R

14 lines
402 B
R

context("kurtosis.R")
test_that("kurtosis works", {
expect_equal(kurtosis(septic_patients$age),
3.57781,
tolerance = 0.00001)
expect_equal(unname(kurtosis(data.frame(septic_patients$age))),
3.57781,
tolerance = 0.00001)
expect_equal(kurtosis(matrix(septic_patients$age)),
3.57781,
tolerance = 0.00001)
})