Skip to contents

This returns a table of historical trades as maintained by Lee Sharpe.

Usage

load_trades(seasons = TRUE)

Arguments

seasons

a numeric vector of seasons to return, default TRUE returns all available data.

Value

A tibble of game information for past and/or future games.

See also

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

dictionary_trades for the data dictionary as bundled within the package

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

Examples

# \donttest{
 load_trades(2020)
#> ── nflverse trades (via PFR / Lee Sharpe) ──────────────────────────────────────
#>  Data updated: 2022-11-09 16:41:50 UTC
#> # A tibble: 211 × 11
#>    trade_id season trade_date gave  received pick_season pick_…¹ pick_…² condi…³
#>       <dbl>  <dbl> <date>     <chr> <chr>          <dbl>   <dbl>   <dbl>   <dbl>
#>  1     1465   2020 2020-03-03 DEN   JAX             2020       4     137       0
#>  2     1465   2020 2020-03-03 JAX   DEN               NA      NA      NA      NA
#>  3     1466   2020 2020-03-04 CAR   LAC               NA      NA      NA      NA
#>  4     1466   2020 2020-03-04 LAC   CAR               NA      NA      NA      NA
#>  5     1471   2020 2020-03-15 BAL   JAX             2020       5     157       0
#>  6     1471   2020 2020-03-15 JAX   BAL               NA      NA      NA      NA
#>  7     1467   2020 2020-03-16 IND   SF              2020       1      13       0
#>  8     1467   2020 2020-03-16 SF    IND               NA      NA      NA      NA
#>  9     1468   2020 2020-03-16 BUF   MIN             2020       1      22       0
#> 10     1468   2020 2020-03-16 BUF   MIN             2020       5     155       0
#> # … with 201 more rows, 2 more variables: pfr_id <chr>, pfr_name <chr>, and
#> #   abbreviated variable names ¹​pick_round, ²​pick_number, ³​conditional
# }