#' center
#'
#' Subtracts the mean from the input
#'
#' @param x A numeric vector
#'
#' @return A numeric vector
#' @export
#'
#' @examples
#' a <- runif(10)
#' center(a)
center <- function(x) {
x - mean(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.