Learn R Programming

ffscrapr (version 1.2.1)

ff_league: Get League Summary

Description

This function returns a tidy dataframe of common league settings, including details like "1QB" or "2QB/SF", scoring, best ball, team count, IDP etc. This is potentially useful in summarising the features of multiple leagues.

Usage

ff_league(conn)

# S3 method for flea_conn ff_league(conn)

# S3 method for mfl_conn ff_league(conn)

# S3 method for sleeper_conn ff_league(conn)

Arguments

conn

the connection object created by ff_connect()

Value

A one-row summary of each league's main features.

Methods (by class)

  • flea_conn: Flea: returns a summary of league features.

  • mfl_conn: MFL: returns a summary of league features.

  • sleeper_conn: Sleeper: returns a summary of league features.

Examples

Run this code
# NOT RUN {
conn <- fleaflicker_connect(2020, 206154)
ff_league(conn)
# }
# NOT RUN {
# }
# NOT RUN {
ssb_conn <- ff_connect(platform = "mfl", league_id = 54040, season = 2020)
ff_league(ssb_conn)
# }
# NOT RUN {

jml_conn <- ff_connect(platform = "sleeper", league_id = "522458773317046272", season = 2020)
ff_league(jml_conn)
# }

Run the code above in your browser using DataLab