meysubb / collegeballR

College Sports Data (R Package)
16 stars 4 forks source link

Some of the functions do not appear to work... #1

Closed jrbouldin closed 5 years ago

jrbouldin commented 5 years ago

For example:

team_stats(team_id=104, year=2019, sport="MBA", by = "game") team_stats(team_id=104, year=2019, sport="MBA", by = "season") team_stats(team_id="UC Santa Barbara", year="2019", sport="MBA", by = "season")

all return: Error in if (sport == "MFB") { : argument is of length zero

Attempting to debug the problem, team_stats() returns "Error in nchar(sport) : argument "sport" is missing, with no default"

So basically, I can neither get the team stats, nor figure out why. It doesn't work.

meysubb commented 5 years ago

Thanks for the issue. Think I know what the issue is. Working on making some changes!

meysubb commented 5 years ago

Couple of things:

1) Current data doesn't let you pull 2019 data. Will make change 2) Underlying data comes from stat.ncaa and their structure has changed

meysubb commented 5 years ago

It should work now, give it a go. Try something like this

team_stats(team_id=104, year=2018, sport="MBA", by = "season")