R/specify_decimal.R

Defines functions specifyDecimal

Documented in specifyDecimal

#' Function created on 23-2-2021 by Matt Whitaker, to work with new wrangling system for REACT-2

### helper function
specifyDecimal <- function(x,k, format = "fg", simpleround =F){
  out= sprintf(x,fmt=paste0("%#.",k,"f"))
  return(out)
}
mathzero/OverReact documentation built on Dec. 2, 2022, 12:05 a.m.