This function returns a dataframe with detailed scoring settings for each league - broken down by event, points, and (if available) position.

ff_scoring(conn)

# S3 method for espn_conn
ff_scoring(conn)

# S3 method for flea_conn
ff_scoring(conn)

# S3 method for mfl_conn
ff_scoring(conn)

# S3 method for sleeper_conn
ff_scoring(conn)

Arguments

conn

a conn object created by ff_connect()

Value

A tibble of league scoring rules for each position defined.

Methods (by class)

  • espn_conn: ESPN: returns scoring settings in a flat table, override positions have their own scoring.

  • flea_conn: Fleaflicker: returns scoring settings in a flat table, one row per position per rule.

  • mfl_conn: MFL: returns scoring settings in a flat table, one row per position per rule.

  • sleeper_conn: Sleeper: returns scoring settings in a flat table, one row per position per rule.

See also

Examples

# \donttest{ try({ # try only shown here because sometimes CRAN checks are weird conn <- espn_connect(season = 2020, league_id = 899513) ff_scoring(conn) }) # end try
#> # A tibble: 627 × 4 #> pos points stat_id stat_name #> <chr> <dbl> <int> <chr> #> 1 QB 0 133 defensive400To449YardsAllowed #> 2 RB 0 133 defensive400To449YardsAllowed #> 3 WR 0 133 defensive400To449YardsAllowed #> 4 TE 0 133 defensive400To449YardsAllowed #> 5 K 0 133 defensive400To449YardsAllowed #> 6 P 0 133 defensive400To449YardsAllowed #> 7 DT 0 133 defensive400To449YardsAllowed #> 8 DE 0 133 defensive400To449YardsAllowed #> 9 LB 0 133 defensive400To449YardsAllowed #> 10 CB 0 133 defensive400To449YardsAllowed #> # … with 617 more rows
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird joe_conn <- ff_connect(platform = "fleaflicker", league_id = 312861, season = 2020) ff_scoring(joe_conn) }) # end try
#> # A tibble: 72 × 7 #> pos event abbrev points label desc event_id #> <chr> <chr> <chr> <dbl> <chr> <chr> <int> #> 1 QB Passing Yard Yd 0.04 Passi… 1 point for every 25 Pas… 3 #> 2 RB Passing Yard Yd 0.04 Passi… 1 point for every 25 Pas… 3 #> 3 WR Passing Yard Yd 0.04 Passi… 1 point for every 25 Pas… 3 #> 4 TE Passing Yard Yd 0.04 Passi… 1 point for every 25 Pas… 3 #> 5 QB Passing TD TD 6 Passi… 6 points for every Passi… 5 #> 6 RB Passing TD TD 6 Passi… 6 points for every Passi… 5 #> 7 WR Passing TD TD 6 Passi… 6 points for every Passi… 5 #> 8 TE Passing TD TD 6 Passi… 6 points for every Passi… 5 #> 9 QB 2 Pt Conversio… 2PC 2 Passi… 2 points for every 2 Pt … 4 #> 10 RB 2 Pt Conversio… 2PC 2 Passi… 2 points for every 2 Pt … 4 #> # … with 62 more rows
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_scoring(ssb_conn) }) # end try
#> # A tibble: 71 × 7 #> pos points range event points_type short_desc long_desc #> <chr> <dbl> <chr> <chr> <chr> <chr> <chr> #> 1 QB 6 0-10 #P each Number of Pa… "This is the total numbe… #> 2 RB 6 0-10 #P each Number of Pa… "This is the total numbe… #> 3 WR 6 0-10 #P each Number of Pa… "This is the total numbe… #> 4 TE 6 0-10 #P each Number of Pa… "This is the total numbe… #> 5 QB 0.04 -50-9… PY each Passing Yards "This is the total passi… #> 6 RB 0.04 -50-9… PY each Passing Yards "This is the total passi… #> 7 WR 0.04 -50-9… PY each Passing Yards "This is the total passi… #> 8 TE 0.04 -50-9… PY each Passing Yards "This is the total passi… #> 9 QB -4 0-10 IN each Pass Interce… "This is the number of p… #> 10 RB -4 0-10 IN each Pass Interce… "This is the number of p… #> # … with 61 more rows
# } # \donttest{ try({ # try only shown here because sometimes CRAN checks are weird jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020) ff_scoring(jml_conn) }) # end try
#> # A tibble: 169 × 3 #> pos event points #> <chr> <chr> <dbl> #> 1 QB pass_2pt 2 #> 2 RB pass_2pt 2 #> 3 WR pass_2pt 2 #> 4 TE pass_2pt 2 #> 5 K pass_2pt 2 #> 6 QB pass_int -2 #> 7 RB pass_int -2 #> 8 WR pass_int -2 #> 9 TE pass_int -2 #> 10 K pass_int -2 #> # … with 159 more rows
# }