From 6cea0695eb1b840bea68753492dfabecd7fe25b3 Mon Sep 17 00:00:00 2001 From: Sebastian Carl Date: Tue, 2 Jul 2024 18:20:18 +0200 Subject: [PATCH] News and documentation --- DESCRIPTION | 4 ++-- NAMESPACE | 1 + NEWS.md | 2 ++ R/nflfastR-package.R | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c238dd72..ed9b5c34 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: nflfastR Title: Functions to Efficiently Access NFL Play by Play Data -Version: 4.6.1.9010 +Version: 4.6.1.9011 Authors@R: c(person(given = "Sebastian", family = "Carl", @@ -71,6 +71,6 @@ Suggests: testthat (>= 3.0.0) Encoding: UTF-8 LazyData: true -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Roxygen: list(markdown = TRUE) Config/testthat/edition: 3 diff --git a/NAMESPACE b/NAMESPACE index 3247233d..9fa4903d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -27,6 +27,7 @@ import(dplyr) import(fastrmodels) importFrom(cli,rule) importFrom(curl,curl_fetch_memory) +importFrom(data.table,"%between%") importFrom(data.table,setDT) importFrom(furrr,future_map) importFrom(furrr,future_map_chr) diff --git a/NEWS.md b/NEWS.md index ea7567f6..02905086 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,8 @@ - `punter_player_id`, and `punter_player_name` are filled for blocked punt attempts. (#463) - Fixed an issue affecting scores of 2022 games involving a return touchdown (#466) - Added identification of scrambles from 1999 through 2004 with thank to Aaron Schatz (#468) +- Added new function `calculate_stats()` that combines the output of all `calculate_player_stats*()` functions with a more robust and faster approach. The `calculate_player_stats*()` function will be deprecated. +- Updated the dataframe `stat_ids` with some IDs that were previously missing. # nflfastR 4.6.1 diff --git a/R/nflfastR-package.R b/R/nflfastR-package.R index 336fc6cd..62cf04ab 100644 --- a/R/nflfastR-package.R +++ b/R/nflfastR-package.R @@ -106,7 +106,7 @@ #' @import dplyr #' @importFrom cli rule #' @importFrom curl curl_fetch_memory -#' @importFrom data.table setDT +#' @importFrom data.table setDT %between% #' @import fastrmodels #' @importFrom furrr future_map_chr future_map_dfr future_map #' @importFrom future plan