View source: R/utilities-eq-label.R
typeset_numbers | R Documentation |
Typeset/format numbers preserving trailing zeros
typeset_numbers(eq.char, output.type)
eq.char |
character A polynomial model equation as a character string. |
output.type |
character One of "expression", "latex", "tex", "text", "tikz", "markdown". |
A character
string.
exponential number notation to typeset equivalent: Protecting trailing zeros in negative numbers is more involved than I would like. Not only we need to enclose numbers in quotations marks but we also need to replace dashes with the minus character. I am not sure we can do the replacement portably, but that recent R supports UTF gives some hope.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.