Skip to contents

MLB Jobs Datacasters

Usage

mlb_jobs_datacasters(sport_id = NULL, date = NULL)

Arguments

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_datacasters(sport_id=1))
#> ── MLB Jobs Datacasters data from MLB.com ─────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:30 UTC
#> # A tibble: 229 × 7
#>    jersey_number job      job_code title    person_id person_full_name
#>    <chr>         <chr>    <chr>    <chr>        <int> <chr>           
#>  1 ""            Stringer MSTR     Stringer    666938 Edward Alvarez  
#>  2 ""            Stringer MSTR     Stringer    816247 Jay Alves       
#>  3 ""            Stringer MSTR     Stringer    684798 David Amoriello 
#>  4 ""            Stringer MSTR     Stringer    632811 Doug Anderson   
#>  5 ""            Stringer MSTR     Stringer    584273 Andy Andres     
#>  6 ""            Stringer MSTR     Stringer    511710 Troy Andre      
#>  7 ""            Stringer MSTR     Stringer    800990 Terri Arms      
#>  8 ""            Stringer MSTR     Stringer    821942 Amanda Bachelder
#>  9 ""            Stringer MSTR     Stringer    823331 Steven Banis    
#> 10 ""            Stringer MSTR     Stringer    670060 Keith Barnes    
#> # ℹ 219 more rows
#> # ℹ 1 more variable: person_link <chr>
# }