#' centre
#'
#' Centres a numeric vector. It is identical to running `scale(x, center = TRUE, scale = FALSE)`.
#' @param x a numeric vector or similar.
#' @export
centre <- function(x) {
# center variable
scale(x, center = TRUE, scale = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.