R/single_team_function.R

Defines functions single_team

#Function returns a subset of the data for only one team that user selects

single_team <- function(team) {
  team_var <- MLS_shot[ which(MLS_shot$Team==team), ]
  return(team_var)
}
BJamesLebo/MajorLeagueSoccR documentation built on July 15, 2019, 9:22 p.m.