Comments (3)
I've tried your code in a few clean R Sessions and it seems to be working fine for me. I'll continue to take a look and see if there's something that could possibly cause us to be returning different things.
While I do that can you try and run it again to maybe see if it might've been an issue on FanGraphs' end at that time?
from baseballr.
Same here, I reinstalled from CRAN just now and ran the following on a clean R session:
library(baseballr)
MLB_Batters_Current <- fg_batter_leaders(2022, 2022, league = "all", qual = "n", ind = 1, exc_p = FALSE)
head(MLB_Batters_Current)
head(MLB_Batters_Current)
── MLB Batter Leaders data from FanGraphs.com ─────────────────────────────────────────── baseballr 1.5.0 ──
ℹ Data updated: 2023-03-24 10:08:30 EDT
# A tibble: 6 × 289
playerid `#` Season Name Team Age G AB PA H `1B` `2B` `3B` HR R RBI BB
<chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 19952 1 2022 Khali… NYM 24 2 2 2 1 0 0 0 1 1 3 0
2 16953 2 2022 Chadw… ATL 27 1 4 4 3 1 2 0 0 0 3 0
3 17734 3 2022 Evan … LAD 27 64 0 1 0 0 0 0 0 0 0 1
4 19608 4 2022 Otto … TOR 23 8 9 10 6 6 0 0 0 0 3 1
5 24770 5 2022 James… LAD 25 4 13 16 6 3 2 0 1 6 3 2
6 8090 6 2022 Matt … NYY 36 47 128 154 39 15 9 0 15 28 37 19
# ℹ 272 more variables: IBB <dbl>, SO <dbl>, HBP <dbl>, SF <dbl>, SH <dbl>, GDP <dbl>, SB <dbl>, CS <dbl>,
# AVG <dbl>, GB <dbl>, FB <dbl>, LD <dbl>, IFFB <dbl>, Pitches <dbl>, Balls <dbl>, Strikes <dbl>,
# IFH <dbl>, BU <dbl>, BUH <dbl>, BB_pct <dbl>, K_pct <dbl>, BB_K <dbl>, OBP <dbl>, SLG <dbl>, OPS <dbl>,
# ISO <dbl>, BABIP <dbl>, GB_FB <dbl>, LD_pct <dbl>, GB_pct <dbl>, FB_pct <dbl>, IFFB_pct <dbl>,
# HR_FB <dbl>, IFH_pct <dbl>, BUH_pct <dbl>, wOBA <dbl>, wRAA <dbl>, wRC <dbl>, Bat <dbl>, Fld <dbl>,
# Rep <dbl>, Pos <dbl>, RAR <dbl>, WAR <dbl>, Dol <dbl>, Spd <dbl>, wRC_plus <dbl>, WPA <dbl>,
# WPA_minus <dbl>, WPA_plus <dbl>, RE24 <dbl>, REW <dbl>, pLI <dbl>, phLI <dbl>, PH <dbl>, …
# ℹ Use `colnames()` to see all variable names
from baseballr.
I reinstalled and it seems to be working now. So could have been FG or a bad install. Either way seems to be working now. Thanks for the quick response!
from baseballr.
Related Issues (20)
- most_recent_season functions error
- ncaa_schedule_info() Not working HOT 5
- playerid_lookup gets 404 error HOT 3
- "Invalid arguments or no team results available" for MIA, WSN, LAD, CLE, CHA for 2022 HOT 4
- fg_team_batter function not working HOT 1
- Object "leaders" not found. FG Batter/Pitcher Leaders HOT 4
- ncaa_game_logs not working for type = "batting" HOT 2
- Fangraphs Batter leaders
- Umpire Data from load_umpire_ids() Ends with games 2022-09-07 HOT 2
- bref_standings_on_date no longer functioning HOT 1
- ncaa_park_factor error HOT 1
- Are there any examples of using sit_code successfully?
- ind argument returns error in the fg_pitcher_leaders function HOT 6
- fangraphs defense HOT 2
- add Chadwick helper functions HOT 1
- fg_team_pitcher function does not work HOT 5
- playerid_lookup returning a 404 HOT 3
- Function arent working HOT 3
- baseballr::fg_pitcher_leaders no longer works HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baseballr.