R/formatPercent.r

Defines functions formatPercent

Documented in formatPercent

formatPercent <- function(x, digits = 1){
  res <- paste(formatC(x * 100, digits, format = "f"), "%", sep = "")
  return(res)
}

Try the reporttools package in your browser

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

reporttools documentation built on Oct. 12, 2021, 5:06 p.m.