Skip to content
Snippets Groups Projects
Select Git revision
  • 50ddae1dcdc24a7962d5fc574355e8eee6cab1ba
  • master default protected
2 results

tidyNum.R

Blame
  • tidyNum.R 330 B
    #' Tidy long numbers
    #'
    #' \code{tidyNum} reformats long numbers to include commas and prevents scientific formats
    #'
    #' @param number an input number or list
    #'
    #' @author Ben Anderson, \email{b.anderson@@soton.ac.uk}
    #' @export
    #' @family utils
    #'
    tidyNum <- function(number) {
      format(number, big.mark=",", scientific=FALSE)
    }