solmos / eurolig

R package for obtaining and analyzing basketball data from the Euroleague

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getAssists not working when no free throw assists

polete1992 opened this issue · comments

I get this message:

Error in UseMethod("group_by_") :
no applicable method for 'group_by_' applied to an object of class "NULL"

I got all the function to see what was going on and realized there were no free throws assisted for one team, which makes "ft_list" being empty and "ft_df" failing.

Can you post the code you used to reproduce that error message?

pbp <- extractPbp(game_code = 190, season = 2021)
assists <- getAssists(pbp, team = "BAR")