sportsdataverse / cfbfastR

An R package to quickly obtain clean and tidy college football play by play data
https://cfbfastR.sportsdataverse.org
Other
74 stars 8 forks source link

cfbd_game_player_stats columns are lists instead of numeric #84

Closed JerrickBackous closed 1 year ago

JerrickBackous commented 1 year ago

Describe the bug When using the cfbd_game_player_stats() function the stat columns should be numeric and the data should be wide, referenced here https://cfbfastr.sportsdataverse.org/reference/cfbd_game_player_stats.html, but the columns import as lists and the category column is still present.

To Reproduce Run the following code: cfbd_game_player_stats(2013, week = 1, team = "Florida State", category = "passing")

Expected behavior The data is wider and the stat columns are numeric instead of lists. image

Screenshots I used the vignette examples to show the actual output below: image image

Desktop (please complete the following information):

akeaswaran commented 1 year ago

IIRC a similar issue was fixed in #75 -- are you sure you're on the most up-to-date version?

JerrickBackous commented 1 year ago

That was the issue! I was using the 1.9.0 CRAN version. After updating to 1.9.3 GitHub version the issue was solved. Thanks!