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 level level of ceiling
#'
#' @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 Jan. 11, 2022, 1:08 a.m.