Advertisement
Guest User

global.R

a guest
Dec 27th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. library(shiny)
  2. library(shinydashboard)
  3. library(DT)
  4. library(readr)
  5. library(dplyr)
  6. library(ggplot2)
  7. library(data.table)
  8. library(runner)
  9. library(zoo)
  10.  
  11. allData <- as.data.frame(read_csv("faceoffNeutral.csv"))
  12. allData$playerDisplay <- paste(allData$player, " (" , allData$playerHand, ")", sep="")
  13. # there might be some people who took faceoffs and only lost but we probably shouldn't care about them
  14. playerChoices <- unique(allData$player)
  15. playerChoices <- playerChoices[order(playerChoices)]
  16. teamChoices <- unique(allData$playerTeam)
  17. teamChoices <- teamChoices[order(teamChoices)]
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement