We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
format_num <- function(input, decimals){ input <- round(input, decimals) output <- sprintf(paste("%.",decimals,"f", sep=''), input) return(output) }