Description Usage Arguments Value Note Examples
This helper function conditionally formats a number with formatC()
function using "E" format and specific number of digits as given by the
user. A number is formatted if and only if its absolute value is less than
0.001 or greater than 10000. Otherwise, the number is not formatted.
Additionally, custom prefix or suffix can be appended to character string
with formatted number, so that the changes are marked.
| 1 | h_format_number(x, digits = 5, prefix = "", suffix = "")
 | 
| x | ( | 
| digits | ( | 
| prefix | ( | 
| suffix | ( | 
Either formatted x as string or unchanged x if the
formatting condition is not met.
This function was primarily designed as a helper for
h_jags_write_model() function.
| 1 2 | h_format_number(50000)
h_format_number(50000, prefix = "P", suffix = "S")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.