R/other_score.R

Defines functions other_score

Documented in other_score

#' @title Other Score
#'
#' @export


other_score <- function(oth) {
  return(
    if (oth %>% `==`('W')) 'L' else if (oth %>% `==`('L')) 'W' else 'D'
  )
}
niallbenj/footballstats documentation built on Aug. 13, 2019, 5:12 p.m.