shortcut for round with some nice advantage for writing. It does not loose the trailing zeros and add digits when necessary, or return the number in scientific notation when too many (12) digits are necessary to represent the first significant digit.
a object of class numeric
number of digits to print
This function is a modification of Karl Broman myround function https://github.com/kbroman/broman/blob/master/R/myround.R Returns the value rounded at the indicated number of digits, preserving extra zeros and adding digists when necessary
a numeric value
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.