numValueString | R Documentation |
Returns numerical value with requested unit in Latex format with numDigits number of decimal places and unit symbol.
numValueString(value, numDigits = 2, unit = "")
value |
number |
numDigits |
number 2 (default) |
unit |
"ms", "mv", "mV", or "%" or "" (default) |
character
# Example 1: string <- numValueString(100.341, 0, "ms") # Example 2: string <- numValueString(2.3412, 2, "mv") # Example 3: string <- numValueString(63.9812, 2, "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.