Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_match_shooting error when only one table available #43

Closed
szfh opened this issue Jul 28, 2021 · 1 comment
Closed

get_match_shooting error when only one table available #43

szfh opened this issue Jul 28, 2021 · 1 comment

Comments

@szfh
Copy link
Contributor

szfh commented Jul 28, 2021

It's possible to only have one team shots in a match, which causes an error with get_match_shooting.

library(worldfootballR)
# library(tidyverse)

urltest <- "https://fbref.com/en/matches/bf52349b/Fulham-Arsenal-September-12-2020-Premier-League"
url1 <- "https://fbref.com/en/matches/f35f4268/Huddersfield-Town-Swansea-City-March-10-2018-Premier-League"
url2 <- "https://fbref.com/en/matches/5e35e444/Bournemouth-Manchester-City-March-2-2019-Premier-League"

# this one works
shotstest <- get_match_shooting(urltest)

# these ones don't
shots1 <- get_match_shooting(url1)
shots2 <- get_match_shooting(url2)
JaseZiv added a commit that referenced this issue Jul 29, 2021
@JaseZiv
Copy link
Owner

JaseZiv commented Jul 29, 2021

This should now be resolved with commit 74db787.

Reach out if there's any further issues.

Thanks heaps

@JaseZiv JaseZiv closed this as completed Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants