Permalink
Browse files

Don't default to 2016-17 season until it starts

  • Loading branch information...
1 parent b46a0fc commit 7e3f75cac8c29de33f2ea69152d635dcaea3a6af @toddwschneider committed Jun 23, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 players_data.R
View
@@ -11,6 +11,10 @@ players = mutate(players,
team_id = as.numeric(team_id)
)
+if (Sys.Date() <= as.Date("2016-10-25")) {
+ players = mutate(players, to_year = pmin(to_year, 2015))
+}
+
players$name = sapply(players$display_last_comma_first, function(s) {
paste(rev(strsplit(s, ", ")[[1]]), collapse = " ")
})

0 comments on commit 7e3f75c

Please sign in to comment.