#' @title Round to the nearest number.
#'
#'
#' @param x numeric: a numeric vector.
#' @param base integer: nearest integer to round round the number.
#' @author Santiago Caño-Muñiz
#'
#' @export
round_nearest <- function(x, base = 5){
n <- base*round(x/base)
return(n)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.