R/alias.R

Defines functions is.error

## File containing simple function aliases that do not need to be tested.

# apply function across rows
row_apply <- purrr::partial(apply, MARGIN = 1)

# apply function down columns
col_apply <- purrr::partial(apply, MARGIN = 2)

# glue collapse with default sep and last
collapse_with_comma <- purrr::partial(
    glue::glue_collapse,
    sep = ", ",
    last = " and "
)

is.error <- function(x) {
    is(x, "error")
}

Try the CellBench package in your browser

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

CellBench documentation built on Nov. 8, 2020, 5:11 p.m.