R/helper-at-least-switch.R

Defines functions at_least_switch

at_least_switch <- function(field_name, amount) {
    stopifnot(is.numeric(amount), length(amount) == 1, all(amount >= 0))
    .call <- list(
        quote(`>=`),
        as.name(field_name),
        amount
    )
    as.call(.call)
}
tarakc02/discoveryengine documentation built on Sept. 26, 2023, 12:17 a.m.