Skip to content
Snippets Groups Projects
Select Git revision
  • 3db054653f4f7171b5f14c4dde722b80d7c93cc5
  • master default protected
2 results

tidyNum.R

Blame
  • Forked from SERG / dataCleaning
    Source project has a limited visibility.
    tidyNum.R 313 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
    #'
    tidyNum <- function(number) {
      format(number, big.mark=",", scientific=FALSE)
    }