Skip to content

Commit

Permalink
for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
James Curley committed Jun 11, 2016
1 parent f5081c5 commit fcf8a48
Show file tree
Hide file tree
Showing 17 changed files with 6,626 additions and 6,568 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
^data-raw$
^cran-comments\.md$
15 changes: 8 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
Title: English and European Soccer Results 1871-2016
Type: Package
Package: engsoccerdata
Title: Soccer Data 1871-2016
Version: 0.1.4
Date: 2015-05-26
Version: 0.1.5
Date: 2016-06-11
Author: James Curley
Maintainer: James Curley <[email protected]>
Description: This package contains English & other European professional soccer
data from 1871-2015.
Description: Analyzing English & European soccer results data from 1871-2016.
Depends:
R (>= 2.10)
License: GPL (>= 2)
Encoding: UTF-8
LazyData: true
Suggests:
Suggests:
RoxygenNote: 5.0.1
Imports:
dplyr,
magrittr,
tidyr
tidyr,
utils
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ export(score_teamX)
export(totgoals)
export(worstlosses)
importFrom(magrittr,"%>%")
importFrom(utils,"head")
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# engsoccerdata 0.1.5

* Added a `NEWS.md` file to track changes to the package.



1 change: 1 addition & 0 deletions R/bestwins.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @param N The total number of games to return
#' @return a dataframe of games ending in best wins
#' @importFrom magrittr "%>%"
#' @importFrom utils "head"
#' @examples
#' bestwins(england,"Everton")
#' bestwins(england,"Aston Villa", type="H")
Expand Down
2 changes: 1 addition & 1 deletion R/champs.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' All results for European Cup and Champions League
#' matches including qualifiers
#'
#' @format A data frame with 6553 rows and 23 variables:
#' @format A data frame with 6554 rows and 23 variables:
#' \describe{
#' \item{Date}{Date of match}
#' \item{Season}{Season of match - refers to starting year}
Expand Down
2 changes: 1 addition & 1 deletion R/englandplayoffs.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' All results for English league playoff games in the top tier
#' from 1892/93 season to 2015/16 season.
#'
#' @format A data frame with 466 rows and 18 variables:
#' @format A data frame with 496 rows and 18 variables:
#' \describe{
#' \item{Date}{Date of match}
#' \item{Season}{Season of match - refers to starting year}
Expand Down
2 changes: 1 addition & 1 deletion R/maketable.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

maketable <- function(df=NULL, Season=NULL, tier=NULL, pts=3){

GA<-GF<-ga<-gf<-gd<-GD<-W<-Pts<-.<-Date<-home<-team<-visitor<-hgoal<-opp<-vgoal<-goaldif <-FT<-division<-result<-maxgoal<-mingoal<-absgoaldif<-NULL
GA<-GF<-ga<-gf<-gd<-GD<-D<-L<-W<-Pts<-.<-Date<-home<-team<-visitor<-hgoal<-opp<-vgoal<-goaldif <-FT<-division<-result<-maxgoal<-mingoal<-absgoaldif<-NULL

dfx <- df[(df$Season==Season & df$tier==tier),]

Expand Down
1 change: 1 addition & 0 deletions R/worstlosses.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @param N The total number of games to return
#' @return a dataframe of games ending in worst losses
#' @importFrom magrittr "%>%"
#' @importFrom utils "head"
#' @examples
#' worstlosses(england,"Everton")
#' worstlosses(england,"Aston Villa", type="H")
Expand Down
16 changes: 16 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Test environments
* local OS X install, R 3.2.2
* ubuntu 12.04 (on travis-ci), R 3.2.2
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.

## Reverse dependencies

This is a new release, so there are no reverse dependencies.

---
13,107 changes: 6,554 additions & 6,553 deletions data-raw/champs.csv

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions data-raw/englandplayoffs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,33 @@
"2014-05-24",2013,"Derby County","Queens Park Rangers","0-1",0,1,"2","f","initial",2,2,NA,NA,NA,"Wembley, London (new)","87,348","yes"
"2014-05-25",2013,"Leyton Orient","Rotherham United","2-2",2,2,"3","f","initial",3,3,"yes","yes","4-3 Rotherham United","Wembley, London (new)","43,401","yes"
"2014-05-26",2013,"Burton Albion","Fleetwood Town","0-1",0,1,"4","f","initial",4,4,NA,NA,NA,"Wembley, London (new)","14,007","yes"
"2015-05-08",2014,"Brentford","Middlesbrough","1-2",1,2,"2","s","leg1",2,2,NA,NA,NA,NA,"11,691",NA
"2015-05-09",2014,"Ipswich Town","Norwich City","1-1",1,1,"2","s","leg1",2,2,NA,NA,NA,NA,"29,166",NA
"2015-05-15",2014,"Middlesbrough","Brentford","3-0",3,0,"2","s","leg2",2,2,NA,NA,NA,NA,"33,266",NA
"2015-05-16",2014,"Norwich City","Ipswich Town","3-1",3,1,"2","s","leg2",2,2,NA,NA,NA,NA,"26,994",NA
"2015-05-25",2014,"Norwich City","Middlesbrough","2-0",2,0,"2","f","initial",2,2,NA,NA,NA,"Wembley, London (new)","85,656","yes"
"2015-05-07",2014,"Chesterfield","Preston North End","0-1",0,1,"3","s","leg1",3,3,NA,NA,NA,NA,"8,409",NA
"2015-05-07",2014,"Sheffield United","Swindon Town","1-2",1,2,"3","s","leg1",3,3,NA,NA,NA,NA,"20,890",NA
"2015-05-10",2014,"Preston North End","Chesterfield","3-0",3,0,"3","s","leg2",3,3,NA,NA,NA,NA,"15,641",NA
"2015-05-11",2014,"Swindon Town","Sheffield United","5-5",5,5,"3","s","leg2",3,3,NA,NA,NA,NA,"13,065",NA
"2015-05-24",2014,"Preston North End","Swindon Town","4-0",4,0,"3","f","initial",3,3,NA,NA,NA,"Wembley, London (new)","48,236","yes"
"2015-05-09",2014,"Plymouth Argyle","Wycombe Wanderers","2-3",2,3,"4","s","leg1",4,4,NA,NA,NA,NA,"14,175",NA
"2015-05-10",2014,"Stevenage Borough","Southend United","1-1",1,1,"4","s","leg1",4,4,NA,NA,NA,NA,"5,183",NA
"2015-05-14",2014,"Wycombe Wanderers","Plymouth Argyle","2-1",2,1,"4","s","leg2",4,4,NA,NA,NA,NA,"7,750",NA
"2015-05-14",2014,"Southend United","Stevenage Borough","3-1",3,1,"4","s","leg2",4,4,"yes",NA,NA,NA,"8,998",NA
"2015-05-23",2014,"Southend United","Wycombe Wanderers","1-1",1,1,"4","f","initial",4,4,"yes","yes","7-6 Southend United","Wembley, London (new)","38,252","yes"
"2016-05-13",2015,"Sheffield Wednesday","Brighton & Hove Albion","2-0",2,0,"2","s","leg1",2,2,NA,NA,NA,NA,"34,260",NA
"2016-05-14",2015,"Derby County","Hull City","0-3",0,3,"2","s","leg1",2,2,NA,NA,NA,NA,"29,969",NA
"2016-05-16",2015,"Brighton & Hove Albion","Sheffield Wednesday","1-1",1,1,"2","s","leg2",2,2,NA,NA,NA,NA,"27,272",NA
"2016-05-17",2015,"Hull City","Derby County","0-2",0,2,"2","s","leg2",2,2,NA,NA,NA,NA,"20,470",NA
"2016-05-28",2015,"Hull City","Sheffield Wednesday","1-0",1,0,"2","f","initial",2,2,NA,NA,NA,"Wembley, London (new)","70,189","yes"
"2016-05-14",2015,"Barnsley","Walsall","3-0",3,0,"3","s","leg1",3,3,NA,NA,NA,NA,"16,051",NA
"2016-05-15",2015,"Bradford City","Millwall","1-3",1,3,"3","s","leg1",3,3,NA,NA,NA,NA,"19,241",NA
"2016-05-19",2015,"Walsall","Barnsley","1-3",1,3,"3","s","leg2",3,3,NA,NA,NA,NA,"8,022",NA
"2016-05-20",2015,"Millwall","Bradford City","1-1",1,1,"3","s","leg2",3,3,NA,NA,NA,NA,"16,301",NA
"2016-05-29",2015,"Barnsley","Millwall","3-1",3,1,"3","f","initial",3,3,NA,NA,NA,"Wembley, London (new)","51,277","yes"
"2016-05-12",2015,"Portsmouth","Plymouth Argyle","2-2",2,2,"4","s","leg1",4,4,NA,NA,NA,NA,"17,622",NA
"2016-05-14",2015,"AFC Wimbledon","Accrington","1-0",1,0,"4","s","leg1",4,4,NA,NA,NA,NA,"4,870",NA
"2016-05-15",2015,"Plymouth Argyle","Portsmouth","1-0",1,0,"4","s","leg2",4,4,NA,NA,NA,NA,"15,011",NA
"2016-05-18",2015,"Accrington","AFC Wimbledon","2-2",2,2,"4","s","leg2",4,4,"yes",NA,NA,NA,"4,634",NA
"2016-05-30",2015,"AFC Wimbledon","Plymouth Argyle","2-0",2,0,"4","f","initial",4,4,NA,NA,NA,"Wembley, London (new)","57,956","yes"
6 changes: 3 additions & 3 deletions data-raw/facup.csv
Original file line number Diff line number Diff line change
Expand Up @@ -16475,8 +16475,8 @@ NA,1992,"Swansea City","Maidstone United",NA,NA,NA,"1","initial",NA,NA,NA,NA,NA,
"2014-11-20",2014,"Maidstone United","Stevenage Borough","2-1",2,1,"1","replay",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"2014-11-25",2014,"Concord Rangers","Mansfield Town","0-1",0,1,"1","replay",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"2015-05-30",2014,"Arsenal","Aston Villa","4-0",4,0,"f","initial",NA,NA,NA,NA,NA,"Wembley (new), London","89,283",NA,NA,"yes"
"Wembley (new), London",2015,"Everton","Manchester United","1-2",1,2,"s","initial",NA,NA,NA,NA,NA,"86,064",NA,NA,NA,"yes"
"Wembley (new), London",2015,"Crystal Palace","Watford","2-1",2,1,"s","initial",NA,NA,NA,NA,NA,"79,110",NA,NA,NA,"yes"
"2016-04-23",2015,"Everton","Manchester United","1-2",1,2,"s","initial",NA,NA,NA,NA,NA,"Wembley (new), London","86,064",NA,NA,"yes"
"2016-04-24",2015,"Crystal Palace","Watford","2-1",2,1,"s","initial",NA,NA,NA,NA,NA,"Wembley (new), London","79,110",NA,NA,"yes"
"2016-03-11",2015,"Reading","Crystal Palace","0-2",0,2,"6","initial",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"2016-03-12",2015,"Everton","Chelsea","2-0",2,0,"6","initial",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"2016-03-13",2015,"Arsenal","Watford","1-2",1,2,"6","initial",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
Expand Down Expand Up @@ -16623,4 +16623,4 @@ NA,1992,"Swansea City","Maidstone United",NA,NA,NA,"1","initial",NA,NA,NA,NA,NA,
"2015-11-17",2015,"Oxford United","Braintree Town","3-1",3,1,"1","replay",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"2015-11-18",2015,"Bradford City","Aldershot Town","2-0",2,0,"1","replay",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"2015-11-19",2015,"Maidenhead United","Port Vale","1-3",1,3,"1","replay",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
"Wembley (new), London",2015,"Crystal Palace","Manchester United","NA-NA",NA,NA,"f","initial",NA,NA,NA,NA,NA,NA,NA,NA,NA,"yes"
"2016-05-21",2015,"Manchester United","Crystal Palace","2-1",2,1,"f","initial","yes",NA,NA,NA,NA,"Wembley (new), London","88,619",NA,NA,"yes"
Binary file modified data/englandplayoffs.rda
Binary file not shown.
Binary file modified data/facup.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/champs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/englandplayoffs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fcf8a48

Please sign in to comment.