Giter Club home page Giter Club logo

Comments (3)

camdenk avatar camdenk commented on June 29, 2024

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.

BillPetti avatar BillPetti commented on June 29, 2024

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.

cregger25 avatar cregger25 commented on June 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.