#' rmse_from_one_func
#'
#' Calculates RMSE with a known target of one.
#'
#' @param vec Vector of estimates around 1.
#' @return Returns a single number: the RMSE.
#'
#' @export
rmse_from_one_func <- function(vec) {
sqrt(mean((vec - 1)^2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.