R/latex_pc.R

Defines functions latex_pc

latex_pc <- function (x) 
{
  require(plyr)
  if (length(x) == 0) 
    return(character())
  x <- round_any(x, precision(x)/100)
  paste0(comma(x * 100), "\\%")
}
jackobailey/jbmisc documentation built on Nov. 10, 2018, 1:08 a.m.