Nothing
`%|0|%` <- function(lhs, rhs) if (is.null(lhs) || identical(lhs, "") || length(lhs) == 0 || is.na(lhs)) rhs else lhs
#' @srrstats {G3.0} Equality comparison between floats use tolerance (e.g., the internal function `near_zero()`)
near_zero <- function(x) {
abs(x) < .Machine$double.eps^0.5
}
maybe_as_tibble <- function(x) {
if ("tibble" %in% loadedNamespaces()) {
rownames(x) <- NULL
class(x) <- c("tbl_df", "tbl", class(x))
}
x
}
backtrans_interaction <- function(x) {
gsub("__", ":", x, fixed = TRUE)
}
replace_as_na <- function(x, y) {
x[x == y] <- NA
x
}
zero_pad <- function(x, y) {
if (missing(y)) y <- max(x)
sprintf(paste0("%0", floor(log10(y)) + 1, "d"), x)
}
check_arg_class <- function(x, x_class, x_arg = x_class) {
if (!inherits(x, x_class)) {
cli::cli_abort("{.arg {x_arg}} must be a {.cls {x_class}} object, not a {.cls {class(x)}}")
}
invisible(TRUE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.