View source: R/custom_scoring.R
custom_scoring | R Documentation |
This function generates a list of scoring settings that can be used as custom
scoring setting for calculations. The resulting list will still need to have
a pts_bracket
element added to handle points allowed for DSTs. See
vignette("scoring_settings")
about this.
custom_scoring(...)
... |
this can be individual scoring variables or a list of scoring variables for specific positions. The list will need to be named with a separated list of positions. Note that scoring for passing, kicking, and DST should never be specified within a list. |
# Settings for a standard league:
custom_scoring(pass_yds = 0.04, pass_tds = 4,
rush_yds = 0.1, rush_tds = 6,
rec_yds = 0.1, rec_tds = 6)
# Settings for a PPR league
custom_scoring(pass_yds = 0.04, pass_tds = 4,
rush_yds = 0.1, rush_tds = 6,
rec = 1, rec_yds = 0.1, rec_tds = 6)
# Settings for a PPR league with TE premium
custom_scoring(pass_yds = 0.04, pass_tds = 4,
rush_yds = 0.1, rush_tds = 6,
RB = list(rec = 0, rec_yds = 0.1, rec_tds = 6),
WR = list(rec = 1, rec_yds = 0.1, rec_tds = 6),
TE = list(rec = 1, rec_yds = 0.1, rec_tds = 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.