Learn R Programming

ffsimulator (version 1.2.3)

ffs_schedule: Get Schedule

Description

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)

Value

a dataframe of schedule that includes the league_id column

Arguments

conn

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

See Also

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

Examples

Run this code
# \donttest{
# cached examples
try({ # try block to prevent CRAN-related issues
conn <- .ffs_cache("mfl_conn.rds")
ffs_schedule(conn)
})
# }

Run the code above in your browser using DataLab