mathString | R Documentation |
Returns formatted string following addition/subtraction.
mathString(str1, str2, operation = "-", numDigits = 0, unit = "ms")
str1 |
string |
str2 |
string |
operation |
"+", "-", "*", "/" |
numDigits |
number 0 (default) |
unit |
"ms" , "mV" , "mv", or "%" |
# Example 1: string <- mathString("550 ms", "480 ms", "-") # Example 2: string <- mathString("2.34", "1.65", "+", numDigits = 2, unit = "mV")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.