R/get_AllMatchInfo.R

#' A Function To Return All Match Information
#' 
#' This function collects and binds together information from all matches
#' @keywords fetch bind matches
#' @importFrom rvest %>%
#' @export
#' @examples
#' get_AllMatchInfo()

get_AllMatchInfo <- function(){

all_fixture_refs <- find_BBC_fixture_sites()

AllMatchInfo <- data.frame()

for(j in c(1:length(all_fixture_refs))){
  
  AllMatchInfo <- rbind(AllMatchInfo,scrape_from_BBC_fixture(all_fixture_refs[j]))
  
}

return(AllMatchInfo)
}
JimmyClowes/wc2018SweepstakeStats documentation built on May 30, 2019, 4:05 a.m.