sptrc_team_active_payroll {baseballr}R Documentation

Scrape Team Active Payroll Breakdown from Spotrac

Description

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

Usage

sptrc_team_active_payroll(team_abbr, year = most_recent_mlb_season())

Arguments

team_abbr

Team abbreviation

year

Year to load

Value

A data frame of contract data.

col_name types
year numeric
team character
player_name character
roster_status character
age numeric
pos numeric
status numeric
waiver_options numeric
base_salary numeric
signing_bonus numeric
payroll_salary numeric
adj_salary numeric
payroll_percent numeric
lux_tax_salary numeric
total_salary numeric

Examples


 try(sptrc_team_active_payroll(team_abbr = "BAL", year = most_recent_mlb_season()))


[Package baseballr version 1.6.0 Index]