#' residual sum of squares
#' @param from matrix
#' @param to matrix
#' @export
rss <- function(from, to) apply(from, 1, function(x, y = t(to)) colSums((y - x) ^ 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.