#' colmeans centering
#'
#' @param x data
#'
#' @return mean-centered data for analysis
#' @export
#'
#' @examples center_colmeans(batsOnly)
center_colmeans <- function(x) {
xcenter = colMeans(x)
x - rep(xcenter, rep.int(nrow(x), ncol(x)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.