R/balls.R

Defines functions balls

Documented in balls

balls <- function(count){
  b <- function(ct){
    as.numeric(unlist(str_split(ct, "-"))[1])
  }
  sapply(count, b)
}
bayesball/PitchSequence documentation built on Jan. 19, 2021, 8:37 p.m.