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 Sept. 11, 2024, 8:58 p.m.