Process numeric LaTeX or HTML values.
latexNumeric(chars, minus = TRUE, leftpad = TRUE, rightpad = TRUE, mathmode = TRUE) htmlNumeric(chars, minus = TRUE, leftpad = TRUE, rightpad = TRUE)
chars |
A character vector of numeric values. |
minus |
Whether to pad cases with no minus sign with spacing of the same width. |
leftpad,rightpad |
Whether to pad cases that have leading or trailing blanks with spacing matching a digit width per space. |
mathmode |
Whether to wrap the result in dollar signs, so LaTeX renders minus signs properly. |
A character vector of the same length as chars
, with modifications
to render properly in LaTeX.
latexNumeric(format(c(1.1,-1,10,-10))) htmlNumeric(format(c(1.1,-1,10,-10)))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.