| robust_round | R Documentation | 
Round numbers without problems.
robust_round(
  x,
  digits = 2,
  thousands_separator = "",
  decimal_separator = ".",
  lower_indicator = TRUE
)
| x | (numeric) The numeric input vector to round. | 
| digits | (int, optional) The number of digits after the decimal separator to round to. | 
| thousands_separator | (string, optional) Used as mark between every 3 decimals before the decimal point. | 
| decimal_separator | (string, optional) The character to be used to indicate the numeric decimal point. | 
| lower_indicator | (Boolaen, optional, default = TRUE) If the result is
(since it is rounded) zero: Should there be displayed a lower-indicator?
E.g.  | 
Rounded numbers as string.
{
  robust_round(c(1.234567, 987123.987654321))
  #> [1] "1.23"   "987.99"
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.