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