nbastatR | NBA Stats API Wrapper and more for R | REST library
kandi X-RAY | nbastatR Summary
kandi X-RAY | nbastatR Summary
NBA Stats API Wrapper and more for R
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nbastatR
nbastatR Key Features
nbastatR Examples and Code Snippets
Community Discussions
Trending Discussions on nbastatR
QUESTION
I am scraping NBA play by play data using the play_by_play function in the nbastatR package. The problem is this function only collects data for 1 game ID at a time, and there are 1230 game IDs in a complete season. When I enter more than 15 game ID's in the play_by_play function, R just keeps loading and showing the wheel of death forever.
I tried to get around this by making a for loop which binds each game id to one cumulative dataframe. However, I run into the same error where R will endlessly load around the 16'th game- very peculiar. I could clean the data in the loop and try that out (I do not need all play by play data, just every shot from the season), but does anyone know why this is happening and how/if I could get around this?
Thanks
...ANSWER
Answered 2021-Aug-04 at 08:52Try this [untested code as I don't have your data]:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nbastatR
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page