# Scale to range ----------------------------------------------------------
scale_runif <- function(x, new_min, new_max) {
(new_max - new_min) * (x - 1) + new_max
}
# Check if number is integer --------------------------------------------
is_integer <- function(x) {
x == round(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.