Skip to contents

Load Rosters

Usage

fast_scraper_roster(...)

Arguments

...

Arguments passed on to nflreadr::load_rosters

seasons

a numeric vector of seasons to return, defaults to returning this year's data if it is March or later. If set to TRUE, will return all available data. Data available back to 1920.

file_type

One of c("rds", "qs", "csv", "parquet"). Can also be set globally with options(nflreadr.prefer)

Value

A tibble of season-level roster data.

Details

See nflreadr::load_rosters for details.

See also

For information on parallel processing and progress updates please see nflfastR.

Examples

# \donttest{
# Roster of the 2019 and 2020 seasons
try({# to avoid CRAN test problems
fast_scraper_roster(2019:2020)
})
#> ── nflverse roster data ────────────────────────────────────────────────────────
#>  Data updated: 2023-03-22 04:03:04 UTC
#> # A tibble: 5,808 × 36
#>    season team  position depth_chart_position jersey_number status full_name    
#>     <int> <chr> <chr>    <chr>                        <int> <chr>  <chr>        
#>  1   2019 ARI   DB       CB                              21 Active Patrick Pete…
#>  2   2019 ARI   DB       SS                              38 Active Chris Banjo  
#>  3   2019 ARI   DB       CB                              23 NA     Robert Alford
#>  4   2019 ARI   DB       CB                              27 NA     Josh Shaw    
#>  5   2019 ARI   DB       CB                              26 NA     Brandon Will…
#>  6   2019 ARI   DB       FS                              28 Active Charles Wash…
#>  7   2019 ARI   DB       CB                              34 NA     Duke Thomas  
#>  8   2019 ARI   DB       CB                              27 NA     Kevin Peters…
#>  9   2019 ARI   DB       CB                              22 NA     Trevor Willi…
#> 10   2019 ARI   DB       FS                              32 Active Budda Baker  
#> # ℹ 5,798 more rows
#> # ℹ 29 more variables: first_name <chr>, last_name <chr>, birth_date <date>,
#> #   height <int>, weight <int>, college <chr>, gsis_id <chr>, espn_id <chr>,
#> #   sportradar_id <chr>, yahoo_id <chr>, rotowire_id <chr>, pff_id <chr>,
#> #   pfr_id <chr>, fantasy_data_id <chr>, sleeper_id <chr>, years_exp <int>,
#> #   headshot_url <chr>, ngs_position <chr>, week <int>, game_type <chr>,
#> #   status_description_abbr <chr>, football_name <chr>, esb_id <chr>, …
# }