R/print_dec.R

#' Function to force print to desired number of decimal points
#'
#' @param x Numeric Value
#' @param digits NUmber of digits to force printed
#' @return character representation of numeric value with desired number of floating points
#' @examples
#' TBD
print_dec = function(x,digits = 2){
  sprintf(paste0('%.',digits,'f'),x)
}
Ajfrick/AVRCHelp documentation built on May 28, 2019, 1:34 a.m.