Loads player contracts from OverTheCap.com
Usage
load_contracts(file_type = getOption("nflreadr.prefer", default = "rds"))
Arguments
- file_type
One of
"rds"
,"qs"
,"csv"
, or"parquet"
. Can also be set globally with options(nflreadr.prefer)
See also
https://overthecap.com/contract-history for a web version of the data
https://nflreadr.nflverse.com/articles/dictionary_contracts.html for a web version of the dictionary
dictionary_contracts
for the data dictionary as bundled within the package
Issues with this data should be filed here: https://github.com/nflverse/rotc
Examples
# \donttest{
try({ # prevents cran errors
load_contracts()
})
#> ── nflverse Historical Contract Data from OverTheCap.com ───────────────────────
#> ℹ Data updated: 2023-01-06 07:17:23 UTC
#> # A tibble: 34,611 × 24
#> player posit…¹ team is_ac…² year_…³ years value apy guara…⁴ apy_c…⁵
#> <chr> <chr> <chr> <lgl> <int> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 Aaron Rodgers QB Pack… TRUE 2022 5 151. 50.3 151. 0.241
#> 2 Josh Allen QB Bills TRUE 2021 6 258 43 150 0.236
#> 3 Russell Wils… QB Bron… TRUE 2022 5 245 49 165 0.235
#> 4 Patrick Maho… QB Chie… TRUE 2020 10 450 45 141 0.227
#> 5 Kyler Murray QB Card… TRUE 2022 5 230. 46.1 160 0.221
#> 6 Deshaun Wats… QB Brow… TRUE 2022 5 230 46 230 0.221
#> 7 Dak Prescott QB Cowb… TRUE 2021 4 160 40 126 0.219
#> 8 Deshaun Wats… QB Texa… FALSE 2020 4 156 39 112. 0.197
#> 9 Derek Carr QB Raid… TRUE 2022 3 121. 40.5 65.3 0.194
#> 10 Matt Stafford QB Rams TRUE 2022 4 160 40 120 0.192
#> # … with 34,601 more rows, 14 more variables: inflated_value <dbl>,
#> # inflated_apy <dbl>, inflated_guaranteed <dbl>, player_page <chr>,
#> # otc_id <int>, date_of_birth <chr>, height <chr>, weight <chr>,
#> # college <chr>, draft_year <int>, draft_round <int>, draft_overall <int>,
#> # draft_team <chr>, cols <list>, and abbreviated variable names ¹position,
#> # ²is_active, ³year_signed, ⁴guaranteed, ⁵apy_cap_pct
# }