BillPetti / baseballr

A package written for R focused on baseball analysis. Currently in development.
billpetti.github.io/baseballr
Other
369 stars 99 forks source link

fg_batter_leaders splits using 'month' argument #323

Open letta-9 opened 10 months ago

letta-9 commented 10 months ago

I am trying to filter batting leaders by splits (vs LHP or vs RHP). On the Fangraphs link, this is done by changing the 'month' to 13 (for vs LHP) and 14 (for vs RHP). However, I am getting an error when changing this argument in the fg_batter_leaders function. Other 'month' values are working properly. Is there a different way to pull the leaderboards by spilt?

image