my_function | R Documentation |
r round is not real round, it solve r round to even number problem.
round45(x, digit)
x |
a numeric parameter |
digit |
x round to digit decimal places |
x <- 2.25
r_round <- round(x, digit=1)
my_round <- round45(x, digit=1)
print(paste("r_round: 2.25 round digit=1 is", r_round))
print(paste("my_round: 2.25 round digit=1 is", my_round))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.