R/generics2.R

Defines functions summary.xpsg

#' @method summary xpsg
#' @export

summary.xpsg <- function(object, ...){

  key <- NULL
  method <- NULL
  width_pred <- NULL
  width <- NULL

  s1 <-  group_by(object[[1]], key, method) %>%
    summarise(RMSE =sqrt(sum((width_pred - width)^2)/n()))

  return(s1)

}

Try the rTG package in your browser

Any scripts or data that you put into this service are public.

rTG documentation built on May 12, 2022, 5:05 p.m.