Package Dependencies

library(DT)
library(dplyr)
library(readxl)

Setup

Place the Excel file in the project's data folder.
Import it the way you normally do in R.
Once this is done you can run the below save() command to save as RData files.

save(Franchise, file="Franchise.RData")
save(MLS_shot, file="2019MLS.RData")
save(MLS_ShotsOnTgt_player, file="2019MLS_ShotsOnTgt.RData")

test function, returns row based on Team short name

team_info <- function(x){
  Franchise[which(Franchise$ShortName == x),]
}

Tables

Functions



BJamesLebo/MajorLeagueSoccR documentation built on July 15, 2019, 9:22 p.m.