R/customCeiling.R

Defines functions customCeiling

Documented in customCeiling

#' Function to do ceiling at different levels
#'
#' @description This function reads number to round
#'
#' @param x number to round
#' @param customDecimals desired decimal positions
#' @keywords internal
#' @return numeric

customCeiling <- function(x, customDecimals = 1) {
  x2 <- x * 10^customDecimals
  ceiling(x2) / 10^customDecimals
}

Try the idiogramFISH package in your browser

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

idiogramFISH documentation built on Aug. 22, 2023, 5:08 p.m.