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

bref_teams_stats() not functional #131

Open
Civ4Ever opened this issue Jan 6, 2024 · 0 comments
Open

bref_teams_stats() not functional #131

Civ4Ever opened this issue Jan 6, 2024 · 0 comments

Comments

@Civ4Ever
Copy link

Civ4Ever commented Jan 6, 2024

bref_teams_stats() doesn't work with any combination of options. Making join_data = FALSE doesn't help. Potentially an issue with Basketball Reference changing their Season page format.

Error from using example:

brTeam1 <- bref_teams_stats(

  • seasons = 2019,
  • return_message = TRUE,
  • assign_to_environment = TRUE,
  • nest_data = FALSE,
  • join_data = TRUE,
  • widen_data = TRUE
  • )
    Parsing https://www.basketball-reference.com/leagues/NBA_2019.html
    Error in left_join():
    ! Join columns in x must be present in the data.
    ✖ Problem with urlSeasonBREF.
    Run rlang::last_trace() to see where the error occurred.
    Warning messages:
    1: Expected 2 pieces. Missing pieces filled with NA in 15 rows [1, 2, 3, 4, 5, 6, 7, 8, 9,
    10, 11, 12, 13, 14, 15].
    2: There was 1 warning in mutate().
    ℹ In argument: gamesBehind1Division = %>%(...).
    Caused by warning:
    ! 3 parsing failures.
    row col expected actual
    1 -- a number —
    6 -- a number —
    11 -- a number —
    3: Expected 2 pieces. Missing pieces filled with NA in 15 rows [1, 2, 3, 4, 5, 6, 7, 8, 9,
    10, 11, 12, 13, 14, 15].
    4: There was 1 warning in mutate().
    ℹ In argument: gamesBehind1Division = %>%(...).
    Caused by warning:
    ! 3 parsing failures.
    row col expected actual
    1 -- a number —
    6 -- a number —
    11 -- a number —
    5: Unknown columns: idRank
    6: Unknown columns: idRank
    7: Unknown columns: idRank
    8: Unknown columns: idRank
    9: Unknown columns: idRank
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

1 participant