R/are_-.R

Defines functions are_eqs are_eq is_eqs is_eq

is_eq <- function(x) {
    inherits(x, "eq")
}

is_eqs <- function(x) {
    inherits(x, "eqs")
}

are_eq <- function(x) {
    if (rlang::is_null(x)) {
        return(FALSE)
    }

    purrr::map_lgl(x, is_eq)
}

are_eqs <- function(x) {
    if (rlang::is_null(x)) {
        return(FALSE)
    }

    purrr::map_lgl(x, is_eqs)
}
UBESP-DCTV/equationer documentation built on Jan. 17, 2021, 6:30 p.m.