R/utilities.R

Defines functions is_fixed_radius

round_digit <- function (d) {
    if (d > 1) {
        round(d)
    } else {
        round(d, -as.integer(floor(log10(abs(d)))))
    }
}



is_fixed_radius <- function(rvar) {
    x <- suppressWarnings(as.numeric(rvar))
    if (is.na(x)) {
        return(FALSE)
    }
    return(TRUE)
}

Try the scatterpie package in your browser

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

scatterpie documentation built on June 7, 2023, 6:31 p.m.