#' Calculate the sum of squares for a sample
#'
#' returs the sum of the squared deviations
#'
#' @param v a vector of numerical values
#'
#' @return number
#' @export
#'
#' @examples
#' sum_squares(rnorm(50))
sum_squares <- function(v){
sum((v - mean(v))^2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.