R/utils.r

Defines functions is_const

#' @importFrom magrittr %>%
#' @export
magrittr::`%>%`

#' @importFrom rlang "%||%"

is_const <- function(x) length(unique(x)) == 1L

Try the gggda package in your browser

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

gggda documentation built on July 18, 2026, 5:07 p.m.