R/fmt.R

#' Format a Number with Commas and No Decimals
#'
#' @author George Fisher
#'
#' #@description
#'
#' #@details
#'
#' @export
#'
#' @examples
#' \dontrun{
#' dat = 123456.654
#' fmt(dat)
#' }
#'
#' @return formatted string
#'
#' @param dat number to be formatted
#'
fmt <- function(dat) {
    return(format(dat, big.mark = ",", scientific = FALSE, digits = 0))
}
grfiv/sp500SlidingWindow documentation built on May 17, 2019, 8:36 a.m.