tests/testthat/test-hedge.R

test_that('hedge', {
    expect_that(hedge('-')(c(-Inf, -1, 0, 1, 10, Inf, NA, NaN)),
                equals(c(0, 0, 0, 1, 1, 1, NA, NaN)))
})

Try the lfl package in your browser

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

lfl documentation built on Sept. 8, 2022, 5:08 p.m.