This function lightly wraps ffscrapr::ff_franchises()
and adds league_id, which is a required column for ffsimulator.
Arguments
- conn
a connection object as created by
ffscrapr::ff_connect()
and friends.
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 waiverSortOrder salaryCapAmount icon
#> <chr> <chr> <chr> <chr> <chr>
#> 1 0001 Mexico City Space Force 9 "" http…
#> 2 0002 Dirty Dgens 6 "" http…
#> 3 0003 Alberta Armadillos 3 "" http…
#> 4 0004 Electric Woodies 10 "" http…
#> 5 0005 Motor City Mutts 2 "" NA
#> 6 0006 Hoth City Tauntauns 1 "" http…
#> 7 0007 Dispersal - JPEG Jocks 8 "" NA
#> 8 0008 DS 5 "" NA
#> 9 0009 Kill Devil Hills Carpetba… 11 "" http…
#> 10 0010 Dispersal - Pirates of th… 7 "" NA
#> 11 0011 TB12 4 "" http…
#> 12 0012 Indigo Plateau Elite 12 "" http…
#> # ℹ 6 more variables: bbidAvailableBalance <chr>, stadium <chr>, logo <chr>,
#> # abbrev <chr>, sound <chr>, league_id <chr>
# }