powered by
Returns numerical value with requested unit in Latex format with numDigits number of decimal places and unit symbol.
numValueString(value, numDigits = 2, unit = "")
character
number
number 2 (default)
"ms", "mv", "mV", or "%" or "" (default)
# Example 1: string <- numValueString(100.341, 0, "ms") # Example 2: string <- numValueString(2.3412, 2, "mv") # Example 3: string <- numValueString(63.9812, 2, "")
Run the code above in your browser using DataLab