tests/testthat/quantile-tests.R

library(STWIBFH)

test_that("Calculate Interquantile Range", {
  expect_equal(calculateInterquantile(c(2,3,4,5,6)), 2)
  expect_equal(calculateInterquantile(c(2,3,4,5)), 1.5)
})
maxmayr95/STWIBFH documentation built on Dec. 31, 2019, 12:56 a.m.