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)
}
cwolfsonseeley/discoveryengine documentation built on Sept. 30, 2023, 2:07 p.m.