tests/testthat/test-pivot.R

test_that("has_col() work", {
    expect_equal(has_col(mtcars, "mpg"), TRUE)
    expect_equal(has_col(mtcars, "mmm"), FALSE)
})

Try the pivotea package in your browser

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

pivotea documentation built on Sept. 11, 2024, 5:22 p.m.