Skip to content

Commit

Permalink
add South Africa data
Browse files Browse the repository at this point in the history
  • Loading branch information
James Curley committed Nov 28, 2017
1 parent 50084dd commit dc13c0d
Show file tree
Hide file tree
Showing 5 changed files with 3,728 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/england_current.R
Expand Up @@ -8,6 +8,11 @@
#' england_current()
#' @export

england_current <- function(Season=2017){
d <- england_current2(england_current1(Season=Season))
return(d)
}

england_current1 <- function(Season = 2017){

#this function is completely bonkers because of a weird thing with Forest Green / Lincoln City ....
Expand Down Expand Up @@ -61,8 +66,4 @@ england_current2 <- function(df1) {
return(df1)
}

england_current <- function(Season=2017){
d <- england_current2(england_current1(Season=Season))
return(d)
}

21 changes: 21 additions & 0 deletions R/safrica.R
@@ -0,0 +1,21 @@
#' South African league results 2002-2017
#'
#' All results for South African soccer games in top 4 tier
#' from 2002/03 season to 2016/17 season.
#'
#' @format A data frame with 3672 rows and 12 variables:
#' \describe{
#' \item{Date}{Date of match}
#' \item{Season}{Season of match - refers to starting year}
#' \item{home}{Home team}
#' \item{visitor}{Visiting team}
#' \item{FT}{Full-time result}
#' \item{hgoal}{Goals scored by home team}
#' \item{vgoal}{Goals scored by visiting team}
#' \item{division}{Division: 1,2,3,4 or 3a (Old 3-North) or 3b (Old 3-South)}
#' \item{tier}{Tier of football pyramid: 1,2,3,4}
#' \item{totgoal}{Total goals in game}
#' \item{goaldif}{Goal difference in game home goals - visitor goals}
#' \item{result}{Result: H-Home Win, A-Away Win, D-Draw}
#' }
"safrica"

0 comments on commit dc13c0d

Please sign in to comment.