Skip to contents

MLB Jobs

Usage

mlb_jobs(job_type = "UMPR", sport_id = NULL, date = NULL)

Arguments

job_type

Return information for a given job_type. See mlb_job_types()

sport_id

Return information for a given sport_id.

date

Return information for a given date.

Value

Returns a tibble with the following columns

col_nametypes
jersey_numbercharacter
jobcharacter
job_codecharacter
titlecharacter
person_idinteger
person_full_namecharacter
person_linkcharacter

Examples

# \donttest{
  try(mlb_jobs(job_type='UMPR'))
#> ── MLB Jobs data from MLB.com ─────────────────────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:13 UTC
#> # A tibble: 106 × 7
#>    jersey_number job    job_code title  person_id person_full_name
#>    <chr>         <chr>  <chr>    <chr>      <int> <chr>           
#>  1 67            Umpire UMPR     Umpire    596809 Ryan Additon    
#>  2 100           Umpire UMPR     Umpire    486200 David Arrieta   
#>  3 101           Umpire UMPR     Umpire    623938 Erich Bacchus   
#>  4 70            Umpire UMPR     Umpire    545402 John Bacon      
#>  5 71            Umpire UMPR     Umpire    490319 Jordan Baker    
#>  6 29            Umpire UMPR     Umpire    503493 Sean Barber     
#>  7 23            Umpire UMPR     Umpire    427013 Lance Barksdale 
#>  8 16            Umpire UMPR     Umpire    483561 Lance Barrett   
#>  9 65            Umpire UMPR     Umpire    427019 Ted Barrett     
#> 10 87            Umpire UMPR     Umpire    482608 Scott Barry     
#> # … with 96 more rows, and 1 more variable: person_link <chr>
# }