Skip to contents

Uses the R package gt to create a pretty html table of the nflseedR simulation summary data frame.

Usage

# S3 method for nflseedR_simulation
summary(object, ...)

Arguments

object

an object for which a summary is desired.

...

additional arguments passed on to the methods (currently not used).

Output of below example

Examples

# \donttest{
library(nflseedR)
# set seed for recreation
set.seed(20220315)

# Simulate the season 20 times in 1 round
sim <- nflseedR::simulate_nfl(
  nfl_season = 2021,
  fresh_season = TRUE,
  simulations = 20
)
#>  2022-09-29 02:23:55: Loading games data
#>  2022-09-29 02:23:55: Beginning simulation of 20 seasons in 1 round
#>  2022-09-29 02:24:07: Combining simulation data
#>  2022-09-29 02:24:07: Aggregating across simulations

# Create Summary Tables
tbl <- summary(sim)

# The output of tbl is given in the above image.
# }