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.
Arguments
- conn
a connection object as created by
ffscrapr::ff_connect()
and friends.
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
#> # … with 4 variables: week <dbl>, franchise_id <chr>, opponent_id <chr>,
#> # league_id <chr>
#> # ℹ Use `colnames()` to see all variable names
# }