View source: R/fg_projections.R
| fg_projections | R Documentation |
Retrieves FanGraphs' published player projections (Steamer, ZiPS, ATC, THE BAT, and their variants) from the FanGraphs projections API – one row per player with the projected stat line.
fg_projections(
type = "steamer",
stats = "bat",
team = 0,
league = "all",
position = "all"
)
type |
Projection system. One of |
stats |
Either |
team |
MLB team filter as FanGraphs' numeric team id; |
league |
League filter: |
position |
Position filter (e.g. |
A baseballr_data tibble with one row per player and the
projection system's stat columns (counting stats, rates, and projected
WAR; column set varies by system and by stats).
try(fg_projections(type = "steamer", stats = "bat"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.