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

dplyr::filter() Can't transform a data frame with duplicate names. #184

Closed
hvoin opened this issue Oct 1, 2022 · 0 comments
Closed

dplyr::filter() Can't transform a data frame with duplicate names. #184

hvoin opened this issue Oct 1, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hvoin
Copy link

hvoin commented Oct 1, 2022

library("worldfootballR")

real_madrid_url <- "https://fbref.com/en/squads/53a2f082/Real-Madrid-Stats"
real_madrid_logs_keeper_ <- fb_team_match_log_stats(team_urls = real_madrid_url, stat_type = "keeper")
Error in dplyr::filter():
! Can't transform a data frame with duplicate names.
Run rlang::last_error() to see where the error occurred.
rlang::last_error()
<error/rlang_error>
Error in dplyr::filter():
! Can't transform a data frame with duplicate names.


Backtrace:

  1. worldfootballR::fb_team_match_log_stats(...)
  2. dplyr:::filter.data.frame(., .data$Date != "")
    Run rlang::last_trace() to see the full context.

rlang::last_trace()
<error/rlang_error>
Error in dplyr::filter():
! Can't transform a data frame with duplicate names.


Backtrace:
x

  1. +-worldfootballR::fb_team_match_log_stats(...)
  2. | -team_urls %>% purrr::map_df(get_each_team_log)
  3. +-purrr::map_df(., get_each_team_log)
  4. | -purrr::map(.x, .f, ...)
  5. | -worldfootballR (local) .f(.x[[i]], ...)
  6. | -df_for %>% dplyr::filter(.data$Date != "")
  7. +-dplyr::filter(., .data$Date != "")
  8. -dplyr:::filter.data.frame(., .data$Date != "")
  9. -dplyr:::filter_rows(.data, ..., caller_env = caller_env())
  10. \-DataMask$new(.data, caller_env, "filter", error_call = error_call)
    
  11.   \-dplyr (local) initialize(...)
    
  12.     \-rlang::abort(...)
    
@JaseZiv JaseZiv self-assigned this Oct 13, 2022
@JaseZiv JaseZiv added the bug Something isn't working label Oct 13, 2022
JaseZiv added a commit that referenced this issue Oct 14, 2022
JaseZiv added a commit that referenced this issue Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants