This release introduces several new data functions, some new utilities, and an array of data/function updates.
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.nflverse_download()
downloads all files attached to
specified/all releases to a local folder. This facilitates something
like arrow::open_dataset()
for reading files locally.nflverse_releases()
lists all releases that can be
loaded through nflverse_download()
load_from_url()
exposes a new utility function for
loading any csv, rds, qs, parquet URL to memory.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.dictionary_snap_counts
and
dictionary_schedules
with some missing fieldsnflfastR::update_db()
as if it were a tibbleoptions(nflreadr.prefer)
defaults to rds now since qs
is no longer a required dependencyclean_player_names()
now also removes commas (after
optionally using them for convert_lastfirst
)clean_player_names()
now also removes all caps
suffixes.sitrep()
exits nicely if no packages are to be
investigated. #114load_from_url
as
primaryload_ff_opportunity()
documentation. #117Thank you to @albtree, @john-b-edwards, @mrcaseb, @pranavrajaram, @tanho63, and @tpenney89 for their contributions and feedback on this release!
This release updates all nflverse URLs to use the new nflverse-data repository releases, as well as provides improved pretty-printing methods that tell you when the data was last updated.
This release adds functions and arguments to access new data, along with some backend changes.
load_ff_opportunity()
downloads expected fantasy points
data from the ffopportunity
packageload_ff_rankings()
gains an "all"
parameter to return all available rankings data (weekly archives since
2019)load_pfr_advstats()
gains a
"summary_level"
parameter to return season-level data,
which has some fields that are not available at the week-level.options(nflreadr.verbose)
replaces
options(nflreadr.cache_warning)
as the best way to silence
nflreadr messages.most_recent_season()
functionThank you to @armstjc, @Grayhawk34, @john-b-edwards, @mrcaseb, @pranavrajaram, @rogers1000, and @tanho63 for their contributions and feedback on this release!
nflverse_sitrep()
and ffverse_sitrep()
give a minimal overview of the package dependencies_sitrep()
functions receive a small print-related
bugfix and colouring improvement.clean_player_names()
and
clean_team_abbrs()
added - these help standardise player
names and team abbreviations based on internal dictionaries.load_ff_rankings()
now has a type
argument
and can return "draft"
or "week"
rankings from
the DynastyProcess/data repo.clean_homeaway()
converts a dataframe of games with
columns prefixed with home_
and away_
to a
dataframe of teams, renaming to team_
and
opponent_
and doubling the rows.load_pfr_advstats()
which provides pass, rush,
rec, def additional data for each week.Thank you to @ajreinhard, @brunomioto, @jthomasmock, @mrcaseb, @SCasanova, and @tanho63 for their feedback and contributions to this package!
This release makes some backend changes for speed, reduced dependency footprint, and ease of maintenance.
load_player_stats()
can now retrieve weekly summaries
of kicking data by specifying the stat_type
argument to be
"kicking"
.load_combine()
retrieves NFL combine data (from
PFR).*_from_url()
family of
functions and move responsibility to progressively()
function decorator instead. See vignette for details.dplyr
and purrr
in
favour of data.table
- this hopefully improves speed and
reduces the dependency footprint.rlang::arg_match0
instead of match.arg (uses rlang
explicitly instead of implicitly as a dependency of memoise).The goal of {nflreadr
} is to efficiently load data from
nflverse GitHub repositories,
and features caching, optional progress updates, and data
dictionaries.
At this time, it includes data from the following repositories:
This will hopefully provide a unified and reliable package for downloading nflverse data that can be extended to the rest of the nflverse and ffverse package families.
Special thanks to Seb, Ben, John, Lee, and Thomas for their contributions to the package and to the data pipelines that this package relies on 🎉