knitr::opts_chunk$set(
  echo = FALSE,
  comment = "#>"
)

with_dt <- requireNamespace("DT")

Below you will find a table that lists and explains all the variables available in calculate_stats(). Compared to the old calculate_player_stats*() functions that have been deprecated, practically all variables (and their names) have been preserved. However, there are a few differences. These are

DT::datatable(
  nflfastR::nfl_stats_variables,
  options = list(scrollX = TRUE, pageLength = 25),
  filter = "top",
  rownames = FALSE,
  style = "bootstrap4"
)
knitr::kable(nflfastR::nfl_stats_variables)


mrcaseb/nflfastR documentation built on April 14, 2025, 12:14 a.m.