#' Return ranges with given width from numbers
#'
#' @param values singular values
#' @param width width of ranges
#'
#' @return
#' @export
#'
#'
make.ranges <- function(values, width = 3) {
add <- (width - 1) / 2
ranges <- c()
for(i in 1:length(values)) {
ranges <- c(ranges, (values[i] - add):(values[i] + add))
}
unique(ranges)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.