#' interval
#'
#' @param x A vector
#'
#' @return A scaled version of x which varies between 0 and 1
#' @export
#'
#' @examples
#' a <- 1:10
#' interval(a)
interval <- function(x) {
y <- x - min(x)
y <- y / max(y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.