Skip to contents

This function creates a connection to a few league templates, and can be used instead of a real conn object in the following functions: ff_scoring(), ff_scoringhistory(), ff_starterpositions().

Usage

ff_template(
  scoring_type = c("ppr", "half_ppr", "zero_ppr", "sfb11"),
  roster_type = c("1qb", "superflex", "sfb11", "idp")
)

Arguments

scoring_type

One of c("default", "ppr", "half_ppr", "zero_ppr", "te_prem", "sfb11")

roster_type

One of c("1qb", "superflex","sfb11", "idp")

Value

a connection object that can be used with ff_scoring(), ff_scoringhistory(), and ff_starterpositions()

Details

Scoring types defined here are:

  • ppr: 6 pt passing/rushing/receiving touchdowns, 0.1 for rushing/receiving yards, 1 point per reception, -2 for fumbles/interceptions

  • half_ppr: same as ppr but with 0.5 points per reception

  • zero_ppr: same as ppr but with 0 points per reception

  • te_prem: same as ppr but TEs get 1.5 points per reception

  • sfb11: scoring as defined here https://scottfishbowl.com/2021/rules.php

Roster settings defined here are:

  • 1qb: Starts 1 QB, 2 RB, 3 WR, 1 TE, 2 FLEX

  • superflex: Starts 1 QB, 2 RB, 3 WR, 1 TE, 2 FLEX, 1 SUPERFLEX

  • sfb11: Starts 1 QB, 2 RB, 3 WR, 1 TE, 3 FLEX, 1 SUPERFLEX (flex positions can also start a kicker)

  • idp: Starts same as 1QB but also starts 3 DL, 3 LB, 3 DB, and two IDP FLEX