This function returns a tidy dataframe of season-long fantasy team stats, including H2H wins as well as points, potential points, and all-play.

ff_standings(conn, ...)

# S3 method for flea_conn
ff_standings(conn, include_allplay = TRUE, include_potentialpoints = TRUE, ...)

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

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

Arguments

conn

a conn object created by ff_connect()

...

arguments passed to other methods (currently none)

include_allplay

TRUE/FALSE - return all-play win pct calculation? defaults to TRUE

include_potentialpoints

TRUE/FALSE - return potential points calculation? defaults to TRUE.

Value

A tidy dataframe of standings data

Methods (by class)

  • flea_conn: Fleaflicker: returns H2H/points/all-play/best-ball data in a table.

  • mfl_conn: MFL: returns H2H/points/all-play/best-ball data in a table.

  • sleeper_conn: Sleeper: returns all standings and points data and manually calculates allplay results.

Examples

# \donttest{ conn <- fleaflicker_connect(season = 2020, league_id = 206154) x <- ff_standings(conn) # } # \donttest{ ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_standings(ssb_conn)
#> # A tibble: 14 x 20 #> franchise_id franchise_name h2h_wins h2h_losses h2h_ties h2h_winpct #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> #> 1 0014 Team Luigi 10 1 0 0.909 #> 2 0009 Team Link 8 3 0 0.727 #> 3 0011 Team Diddy Ko… 7 4 0 0.636 #> 4 0010 Team Yoshi 7 4 0 0.636 #> 5 0006 Team King Ded… 6 5 0 0.545 #> 6 0003 Team Captain … 6 5 0 0.545 #> 7 0007 Team Kirby 6 5 0 0.545 #> 8 0008 Team Fox 6 5 0 0.545 #> 9 0004 Team Ice Clim… 4 7 0 0.364 #> 10 0012 Team Mewtwo 4 7 0 0.364 #> 11 0005 Team Dr. Mario 4 7 0 0.364 #> 12 0002 Team Simon Be… 4 7 0 0.364 #> 13 0001 Team Pikachu 3 8 0 0.273 #> 14 0013 Team Ness 2 9 0 0.182 #> # … with 14 more variables: allplay_wins <dbl>, allplay_losses <dbl>, #> # allplay_ties <dbl>, allplay_winpct <dbl>, points_for <dbl>, #> # points_against <dbl>, max_points_against <dbl>, min_points_against <dbl>, #> # potential_points <dbl>, victory_points <dbl>, offensive_points <dbl>, #> # defensive_points <dbl>, power_rank <dbl>, power_rank_alt <dbl>
# } # \donttest{ jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020) ff_standings(jml_conn)
#> # A tibble: 12 x 12 #> franchise_id franchise_name h2h_wins h2h_losses h2h_ties h2h_winpct #> <int> <chr> <dbl> <dbl> <dbl> <dbl> #> 1 1 Fake News 7 4 0 0.636 #> 2 2 KingGabe 1 10 0 0.0909 #> 3 3 solarpool 7 4 0 0.636 #> 4 4 The FANTom Me… 7 4 0 0.636 #> 5 5 Barbarians 4 7 0 0.364 #> 6 6 sox05syd 6 5 0 0.545 #> 7 7 Flipadelphia05 8 3 0 0.727 #> 8 8 Hocka Flocka 6 5 0 0.545 #> 9 9 ZPMiller97 4 7 0 0.364 #> 10 10 JMLarkin 1 10 0 0.0909 #> 11 11 Permian Panth… 7 4 0 0.636 #> 12 12 jaydk 8 3 0 0.727 #> # … with 6 more variables: points_for <dbl>, points_against <dbl>, #> # potential_points <dbl>, allplay_wins <dbl>, allplay_losses <dbl>, #> # allplay_winpct <dbl>
# }