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 franc…¹ bbidA…² icon  stadium logo  waive…³ salar…⁴ abbrev sound
#>    <chr>        <chr>   <chr>   <chr> <chr>   <chr> <chr>   <chr>   <chr>  <chr>
#>  1 0001         Mexico… 10.76   http… MC      http… 9       ""      PewPew NA   
#>  2 0002         Dirty … 0.34    http… NA      http… 6       ""      NA     NA   
#>  3 0003         Albert… 1.52    http… NA      NA    3       ""      AA     NA   
#>  4 0004         Electr… 1.06    http… Menlo … http… 10      ""      EW     NA   
#>  5 0005         Motor … 1.45    NA    NA      NA    2       ""      NA     NA   
#>  6 0006         Hoth C… 3.79    http… Echo B… http… 1       ""      HCT    NA   
#>  7 0007         Disper… 1.24    NA    NA      NA    8       ""      NA     NA   
#>  8 0008         DS      0.92    NA    NA      NA    5       ""      NA     NA   
#>  9 0009         Kill D… 7.29    http… NA      http… 11      ""      KDHC   NA   
#> 10 0010         Disper… 2.04    NA    NA      NA    7       ""      NA     NA   
#> 11 0011         TB12    0.03    http… NA      http… 4       ""      NA     NA   
#> 12 0012         Indigo… 15.50   http… NA      http… 12      ""      NA     http…
#> # … with 1 more variable: league_id <chr>, and abbreviated variable names
#> #   ¹​franchise_name, ²​bbidAvailableBalance, ³​waiverSortOrder, ⁴​salaryCapAmount
#> # ℹ Use `colnames()` to see all variable names
# }