hoopR
baseballr
hoopR | baseballr | |
---|---|---|
6 | 16 | |
78 | 353 | |
- | - | |
7.6 | 7.4 | |
3 months ago | 19 days ago | |
R | R | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hoopR
-
Schedule Sheet Mon 2/27
Thankfully, I've made use of the hoopR package which lets me get data that is up to date, primarily by pulling info from ESPN's APIs. While that does most of the work, there's tweaking that I need to do (most particularly for streamed game broadcasts that aren't ESPN3/ESPN+) but it usually goes fairly swimmingly.
-
Help!! Dataset required for Supervised Linear Regression | Learning purposes
hoopR (college and pro basketball)
- Resources for Sports Analytics
- NBA individual player stats for every game.
-
Where Can I get Excel File for Regular Season Schedule?
https://github.com/saiemgilani/hoopR Digging around through here will probably help you find a csv which is easy to convert to excel
-
An empirical analysis of the relationship between every NBA players' astrological sign and on-court performance in the 2020-2021 season.
Next, we’ll look at a few measures of performance on the court to see whether certain signs are better or worse suited to particular aspects of the game. For each of these, I took player box score statistics (sourced from https://github.com/saiemgilani/hoopR), grouped them by the player’s astrological sign, and calculated their average numbers through the 2020-21 season. First, we’ll look at scoring -- the chart below shows each sign’s average points per game.
baseballr
-
[General Discussion] Around the Horn - 12/11/23
A basic understanding of R should be enough if you install the baseball r package. From there you can scrape off of Baseball Reference or Fangraphs for custom date ranges to get stats on whatever time frame basis you would like. Then you can export/copy/whatever to excel if you want, or do the analysis right in R.
-
Are the 2023 Yankees too dependent on Judge (and maybe Stanton)? (a) Judge/Stanton Active: .562 W-L% in 16G, 4.8 R/G (b) Judge Active, Stanton IL: .636 W-L% in 33G, 5.0 R/G (c) Judge IL, Stanton Active: .438 W-L% in 16G, 3.4 R/G (d) Judge/Stanton IL: .400 W-L% in 10G, 3.5 R/G (Source: MLB Stats API)
Source: MLB Stats API via baseballr.
-
Scraping Minor League Stats?
I like this idea, too! I use baseballr all the time. It is a godsend.
-
Question on data scraping
In order to make it, I need to get every lineup from every game in the season. I am using the baseballr package to get the game_pk number. Each game has a game_pk number, and each lineup is tied to that game_pk. So I need to create a dataframe (all_games_list) for each game with its game_pk number in it, and then use the game_pk numbers to create a new dataframe (lineup_all) that contains the lineup for said game_pk.
-
Is their a stat or a program where I can see which pitchers during game deficits or leads, giving up a few runs due to walk walks, played hits, rbis? How would I go about filtering it out? I don’t mean starting pitchers or anything like that, I mean pitchers that came in one inning gave up 4 runs.
I just remembered there is also this R package: Acquiring and Analyzing Baseball Data • baseballr.
-
[Doyle] Multiple sources: The Seattle Mariners are calling up right-handed pitcher Bryce Miller. He will start Tuesday against Oakland.
To get all the data, I would suggest checking out baseballr if you are familiar with R. https://billpetti.github.io/baseballr/
-
[OC] The New MLB Pitch Clock is Fixing Baseball's Pace-of-Play Crisis
Visualization originally posted on my blog - I built the boxplot using R and ggplot2, and was fortunate to be able to use the excellent baseballr package to query MLB game information for the runtime source data!
-
Help!! Dataset required for Supervised Linear Regression | Learning purposes
baseballR (baseball)
-
MLB Stats API Application time?
most folks without direct access to mlb's api scrape baseball savant's data api. packages like baseballr or pybaseball can help with this. remember, this is in the open on a trust model: no commercial use, and don't hammer the api.
-
Where to get started analyzing basic baseball metrics
If you're using R, this is the gold standard package to use for getting baseball data. This helps you scrape data.
What are some alternatives?
nbastatR - NBA Stats API Wrapper and more for R
pybaseball - Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
sportsipy - A free sports API written for python
boxball - Prebuilt Docker images with Retrosheet's complete baseball history data for many analytical frameworks. Includes Postgres, cstore_fdw, MySQL, SQLite, Clickhouse, Drill, Parquet, and CSV.
ncaahoopR - An R package for working with NCAA Basketball Play-by-Play Data
mlbplotR - R package to easily plot MLB logos
nba-sql - :basketball: An application to build an NBA database backed by MySQL, Postgres, or SQLite
ggplot2 - An implementation of the Grammar of Graphics in R
nba_api - An API Client package to access the APIs for NBA.com
baseballr - A package written for R focused on baseball analysis. Currently in development.
Basketball_Analytics - Repository which contains various scripts and work with various basketball statistics
tidycensus - Load US Census boundary and attribute data as 'tidyverse' and 'sf'-ready data frames in R