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")

ffs_franchises(conn)
#> # A tibble: 12 × 11
#>    franchise_id franchise_name   icon         abbrev waiverSortOrder logo       
#>    <chr>        <chr>            <chr>        <chr>  <chr>           <chr>      
#>  1 0001         Mexico City Spa… https://www… PewPew 9               https://ww…
#>  2 0002         Dirty Dgens      https://www… NA     6               https://re…
#>  3 0003         Alberta Armadil… https://www… AA     3               NA         
#>  4 0004         Electric Woodies https://www… EW     10              https://ww…
#>  5 0005         Motor City Mutts NA           NA     2               NA         
#>  6 0006         Hoth City Taunt… https://i.i… HCT    1               https://i.…
#>  7 0007         Paw Patrol       NA           PP     8               NA         
#>  8 0008         Domination Stat… https://www… D.S.   5               https://ww…
#>  9 0009         Kill Devil Hill… https://www… KDHC   11              https://ww…
#> 10 0010         [Redacted]       https://www… NA     7               https://ww…
#> 11 0011         TB12             https://i.i… NA     4               https://i.…
#> 12 0012         Indigo Plateau … https://i.i… NA     12              https://i.…
#> # … with 5 more variables: bbidAvailableBalance <chr>, salaryCapAmount <chr>,
#> #   stadium <chr>, sound <chr>, league_id <chr>
# }