R/per_90.R

Defines functions per_90

Documented in per_90

#' Per 90 Conversion
#'
#' This function converts a raw stat to a per 90 metric
#'
#' @param stat The stat to convert to a per 90 metric
#' @param minutes_played The total number of minutes played

per_90 <- function(stat, minutes_played){
  round(stat / minutes_played * 90, digits = 2)
}
stxlen/soccr documentation built on Feb. 17, 2025, 1:23 a.m.