tests/testthat/helper.R

testdata <- data.frame(state.region, state.x77) %>%
    dplyr::mutate(Rich = as.numeric(Income > 4500)) %>%
    tibble::as_tibble() %>%
    dplyr::arrange(state.region) %>%
    dplyr::mutate(Populated = as.numeric(Population > 3000))

fix_order <- function(.tbl) {
    .tbl %>%
        dplyr::arrange(term, estimate)
}

Try the mason package in your browser

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

mason documentation built on July 1, 2020, 5:48 p.m.