Skip to contents

Data collected from an API for weekly injury report data.

Usage

load_injuries(
  seasons = most_recent_season(),
  file_type = getOption("nflreadr.prefer", default = "rds")
)

Arguments

seasons

a numeric vector of seasons to return, data available since 2009. Defaults to latest season available.

file_type

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

Value

a tibble of season-level injury report data.

See also

https://nflreadr.nflverse.com/articles/dictionary_injuries.html for a web version of the dictionary

dictionary_injuries for the data dictionary as bundled within the package

Issues with this data should be filed here: https://github.com/nflverse/nflverse-data

Examples

# \donttest{
try({# prevents cran errors
    load_injuries(2020)
})
#> ── nflverse injury & practice reports ──────────────────────────────────────────
#>  Data updated: 2022-07-26 05:23:25 UTC
#> # A tibble: 5,661 × 16
#>    season game_type team   week gsis_id  posit…¹ full_…² first…³ last_…⁴ repor…⁵
#>     <dbl> <chr>     <chr> <dbl> <chr>    <chr>   <chr>   <chr>   <chr>   <chr>  
#>  1   2020 REG       ARI       1 00-0035… WR      KeeSea… KeeSean Johnson NA     
#>  2   2020 REG       ARI       1 00-0022… WR      Larry … Larry   Fitzge… NA     
#>  3   2020 REG       ARI       1 00-0030… WR      DeAndr… DeAndre Hopkins NA     
#>  4   2020 REG       ARI       1 00-0031… TE      Maxx W… Maxx    Willia… NA     
#>  5   2020 REG       ARI       1 00-0036… T       Josh J… Josh    Jones   Ankle  
#>  6   2020 REG       ATL       1 00-0027… G       James … James   Carpen… NA     
#>  7   2020 REG       ATL       1 00-0032… RB      Todd G… Todd    Gurley  NA     
#>  8   2020 REG       ATL       1 00-0026… C       Alex M… Alex    Mack    NA     
#>  9   2020 REG       ATL       1 00-0032… DE      Dante … Dante   Fowler  NA     
#> 10   2020 REG       ATL       1 00-0034… WR      Russel… Russell Gage    NA     
#> # … with 5,651 more rows, 6 more variables: report_secondary_injury <chr>,
#> #   report_status <chr>, practice_primary_injury <chr>,
#> #   practice_secondary_injury <chr>, practice_status <chr>,
#> #   date_modified <dttm>, and abbreviated variable names ¹​position, ²​full_name,
#> #   ³​first_name, ⁴​last_name, ⁵​report_primary_injury
# }