sptrc_league_payrolls: *Scrape League Payroll Breakdowns from Spotrac*

View source: R/sptrc_league_payrolls.R

sptrc_league_payrollsR Documentation

Scrape League Payroll Breakdowns from Spotrac

Description

This function allows you to scrape each team's payroll from Spotrac.

Usage

sptrc_league_payrolls(year = most_recent_mlb_season())

Arguments

year

Year to load

Value

A data frame of contract data.

col_name types
year character
team character
team_abbr character
rank numeric
win_percent numeric
roster numeric
active_man_payroll numeric
injured_reserve numeric
retained numeric
buried numeric
suspended numeric
yearly_total_payroll numeric

Examples


  try(sptrc_league_payrolls(year = most_recent_mlb_season()))


baseballr documentation built on April 1, 2023, 12:12 a.m.