#' simple Z transformation
#'
#' @param x Numeric. Input vector for z transformation
#'
#' @author Frederik Sachser
#' @export
ztrans <- function(x) {
if (!is.numeric(x)) stop("Only numeric input allowed.")
xz <- (x-mean(x))/sd(x)
return(xz)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.