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 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)

  • 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{ joe_conn <- ff_connect(platform = "fleaflicker", league_id = 312861, season = 2020) ff_scoring(joe_conn)
#> # A tibble: 72 x 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{ ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020) ff_scoring(ssb_conn) # } # \donttest{ jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020) ff_scoring(jml_conn)
#> # A tibble: 45 x 2 #> event points #> <chr> <dbl> #> 1 pass_2pt 2 #> 2 pass_int -2 #> 3 fgmiss 0 #> 4 rec_yd 0.1 #> 5 xpmiss 0 #> 6 def_pr_td 0 #> 7 fgm_30_39 0 #> 8 blk_kick 2 #> 9 pts_allow_7_13 0 #> 10 ff 1 #> # … with 35 more rows
# }