Skip to contents

This function lightly wraps ffscrapr::ff_schedule() and adds league_id, which is a required column for ffsimulator, casts IDs to character, and drops actual games played so as to only simulate unplayed games.

Usage

ffs_schedule(conn)

Arguments

conn

a connection object as created by ffscrapr::ff_connect() and friends.

Value

a dataframe of schedule that includes the league_id column

See also

vignette("Custom Simulations") for more detailed example usage

Examples

# \donttest{
# cached examples
try({ # try block to prevent CRAN-related issues
conn <- .ffs_cache("mfl_conn.rds")
ffs_schedule(conn)
})
#> # A tibble: 0 × 4
#> # ℹ 4 variables: week <dbl>, franchise_id <chr>, opponent_id <chr>,
#> #   league_id <chr>
# }