View source: R/results_generation.R
Format a Numeric as a String Percentage This function formats a decimal number into a string percentage with a specific number of decimal places and with a " The function uses formatC from the R base package and defaults to formatting the number with 1 digit and with the "f" format in the formatC argument. This function is originally from the StackOverflow post: http://stackoverflow.com/questions/12688717/round-up-from-5-in-r
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.