Skip to contents

This function lightly wraps ffscrapr::ff_franchises() and adds league_id, which is a required column for ffsimulator.

Usage

ffs_franchises(conn)

Arguments

conn

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

Value

a dataframe of franchises that includes the league_id column

See also

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

Examples

# \donttest{
# cached examples
conn <- .ffs_cache("mfl_conn.rds")

try({ # prevents CRAN connectivity issues, not actually required in normal usage
ffs_franchises(conn)
})
#> # A tibble: 12 × 11
#>    franchise_id franchise_name             salaryCapAmount logo  waiverSortOrder
#>    <chr>        <chr>                      <chr>           <chr> <chr>          
#>  1 0001         Mexico City Space Force    ""              http… 9              
#>  2 0002         Dirty Dgens                ""              http… 6              
#>  3 0003         Alberta Armadillos         ""              NA    3              
#>  4 0004         Electric Woodies           ""              http… 10             
#>  5 0005         Motor City Mutts           ""              NA    2              
#>  6 0006         Hoth City Tauntauns        ""              http… 1              
#>  7 0007         Dispersal - JPEG Jocks     ""              NA    8              
#>  8 0008         DS                         ""              NA    5              
#>  9 0009         Kill Devil Hills Carpetba… ""              http… 11             
#> 10 0010         Dispersal - Pirates of th… ""              NA    7              
#> 11 0011         TB12                       ""              http… 4              
#> 12 0012         Indigo Plateau Elite       ""              http… 12             
#> # ℹ 6 more variables: bbidAvailableBalance <chr>, stadium <chr>, icon <chr>,
#> #   abbrev <chr>, sound <chr>, league_id <chr>
# }