tests/testthat/test_trim_weights.r

weights <- c(0, 1, 0.3, 0.4, 19)

trimmed <- trim_weights(weights, trim=18)

test_that("trimming", {
  expect_lt(max(trimmed), 19)
})
RobinDenz1/adjustedCurves documentation built on Sept. 27, 2024, 7:04 p.m.