This function returns a tidy dataframe with positional lineup rules.

ff_starter_positions(conn, ...)

# S3 method for espn_conn
ff_starter_positions(conn, ...)

# S3 method for flea_conn
ff_starter_positions(conn, ...)

# S3 method for mfl_conn
ff_starter_positions(conn, ...)

# S3 method for sleeper_conn
ff_starter_positions(conn, ...)

Arguments

conn

the list object created by ff_connect()

...

other arguments (currently unused)

Value

A tidy dataframe of positional lineup rules, one row per position with minimum and maximum starters as well as total starter calculations.

Methods (by class)

  • espn_conn: ESPN: returns min/max starters for each main player position

  • flea_conn: Fleaflicker: returns minimum and maximum starters for each player position.

  • mfl_conn: MFL: returns minimum and maximum starters for each player position.

  • sleeper_conn: Sleeper: returns minimum and maximum starters for each player position.

Examples

# \donttest{ conn <- espn_connect(season = 2020, league_id = 1178049) ff_starter_positions(conn)
#> # A tibble: 6 x 7 #> pos min max offense_starters defense_starters kdst_starters #> <chr> <int> <int> <int> <int> <int> #> 1 QB 1 1 7 0 2 #> 2 RB 2 4 7 0 2 #> 3 WR 3 5 7 0 2 #> 4 TE 1 3 7 0 2 #> 5 DST 1 1 7 0 2 #> 6 K 1 1 7 0 2 #> # … with 1 more variable: total_starters <int>
# } # \donttest{ conn <- fleaflicker_connect(season = 2020, league_id = 206154) ff_starter_positions(conn)
#> # A tibble: 10 x 7 #> pos min max offense_starters defense_starters kdst_starters #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 CB 2 4 7 8 1 #> 2 EDR 0 4 7 8 1 #> 3 IL 0 4 7 8 1 #> 4 K 1 1 7 8 1 #> 5 LB 2 4 7 8 1 #> 6 QB 1 1 7 8 1 #> 7 RB 2 3 7 8 1 #> 8 S 2 4 7 8 1 #> 9 TE 1 2 7 8 1 #> 10 WR 2 3 7 8 1 #> # … with 1 more variable: total_starters <dbl>
# } # \donttest{ dlfidp_conn <- mfl_connect(2020, league_id = 33158) ff_starter_positions(conn = dlfidp_conn)
#> # A tibble: 9 x 7 #> pos min max offense_starters defense_starters kdst_starters #> <chr> <int> <int> <dbl> <dbl> <int> #> 1 QB 1 1 8 10 0 #> 2 RB 1 6 8 10 0 #> 3 WR 1 6 8 10 0 #> 4 TE 0 5 8 10 0 #> 5 DT 1 3 8 10 0 #> 6 DE 2 4 8 10 0 #> 7 LB 2 4 8 10 0 #> 8 CB 2 4 8 10 0 #> 9 S 1 3 8 10 0 #> # … with 1 more variable: total_starters <int>
# } # \donttest{ jml_conn <- sleeper_connect(league_id = "652718526494253056", season = 2021) jml_starters <- ff_starter_positions(jml_conn) # }