Learn R Programming

ffscrapr (version 1.2.1)

ff_scoring: Get League Scoring settings

Description

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

Usage

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

http://www03.myfantasyleague.com/2020/scoring_rules#rules

Examples

Run this code
# NOT RUN {
joe_conn <- ff_connect(platform = "fleaflicker", league_id = 312861, season = 2020)
ff_scoring(joe_conn)
# }
# NOT RUN {
# }
# NOT RUN {
ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020)
ff_scoring(ssb_conn)
# }
# NOT RUN {
# }
# NOT RUN {
jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020)
ff_scoring(jml_conn)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab