Description Usage Arguments Value
This function calculates the margin, or relative size, of a value compared to another while ensuring there are no adverse results such as NA, NAN, or Inf. It also attempts to avoid the issue of returning infinitely small, non-zero, values by rounding each value to two decimals first.
1 | calc_margin(x, y)
|
x |
numeric value, or vector |
y |
numeric value, or vector |
numeric value, or vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.