R/fmt.R

Defines functions fmt

Documented in fmt

#' 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))
}

Try the sp500SlidingWindow package in your browser

Any scripts or data that you put into this service are public.

sp500SlidingWindow documentation built on May 30, 2017, 4:18 a.m.