#' calculates rf performance
#' @param data data with variables Y and Ypred
#' @export
#' @return tibble with meanError and bias
calc_rf_perf=function(data){
result=tibble(
meanError=mean(abs(data$Ypred-data$Y)),
bias=mean(data$Ypred-data$Y)
)
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.