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)
})

Try the adjustedCurves package in your browser

Any scripts or data that you put into this service are public.

adjustedCurves documentation built on Feb. 5, 2026, 5:07 p.m.