how to calc rmse and r2 in r code example Example: calc_rmse in R calc_rmse(df_all, date_min = NULL, center = F)