Guest User

Untitled

a guest
Apr 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. GetNumberOfTOForTeams <- function(file)
  2. {
  3. a = c()
  4. b = c()
  5. home = substr(file, 13, 15)
  6. away = substr(file, 10, 12)
  7. for (i in 1:length(files))
  8. {
  9. if (substr(files[i], 10, 12) == home || substr(files[i], 13, 15) == home)
  10. {
  11. a = c(a, GetNumberOfTO(d[[i]], home))
  12. }
  13. if (substr(files[i], 10, 12) == away || substr(files[i], 13, 15) == away)
  14. {
  15. b = c(b, GetNumberOfTO(d[[i]], away))
  16. }
  17. }
  18. c(mean(b), mean(a))
  19. }
Add Comment
Please, Sign In to add comment