nflreadr 1.3.0
This release introduces several new data functions, some new utilities, and an array of data/function updates.
New Data!
load_participation()
returns new play-level information about what players are on the field, how many players are in the box, and what formation the offense is using. Data from NGS starting 2016 and onwardload_contracts()
downloads (historical) player contracts from OverTheCap.comload_players()
returns player-level information and is the new recommended source (over rosters) for IDs, positions, birthdates etc.load_rosters_weekly()
provides week-by-week team rosters dating back to 2002.load_officials()
returns game-level information about which officials are assigned to specific games.
New Functions!
nflverse_download()
downloads all files attached to specified/all releases to a local folder. This facilitates something likearrow::open_dataset()
for reading files locally.nflverse_releases()
lists all releases that can be loaded throughnflverse_download()
load_from_url()
exposes a new utility function for loading any csv, rds, qs, parquet URL to memory.
Function Updates!
load_draft_picks()
now has the rest of the career stat fields from PFR*sitrep()
functions now report package-specific options that are set.get_current_week()
helper to get the current nfl season weekload_rosters()
now provides season-level rosters dating back to 1920.
Other bugfixes
- moved rbindlist to a helper that manages attributes better
- update
dictionary_snap_counts
anddictionary_schedules
with some missing fields - rewrite from_url error messages to use cli and improve usefulness
- bump minimum rlang version to 1.0.0
- add piggyback suggested dependency
- Export old class to support S4/DBI/
nflfastR::update_db()
as if it were a tibble - Fix exportOldClass so that it supports only data.frame stuff? we have no idea,,,
options(nflreadr.prefer)
defaults to rds now since qs is no longer a required dependencyclean_player_names()
now also removes commas (after optionally using them forconvert_lastfirst
)clean_player_names()
now also removes all caps suffixes- dictionary updates: return labelled.
.sitrep()
exits nicely if no packages are to be investigated. #114- refactored all the loaders to use
load_from_url
as primary - fixed broken example in
load_ff_opportunity()
documentation. #117
Thank you to @albtree, @john-b-edwards, @mrcaseb, @pranavrajaram, @tanho63, and @tpenney89 for their contributions and feedback on this release!