Learn R Programming

ffscrapr (version 1.2.1)

ff_rosters: Get League Rosters

Description

This function returns a tidy dataframe of team rosters

Usage

ff_rosters(conn, ...)

# S3 method for flea_conn ff_rosters(conn, ...)

# S3 method for mfl_conn ff_rosters(conn, custom_players = FALSE, ...)

# S3 method for sleeper_conn ff_rosters(conn, ...)

Arguments

conn

a conn object created by ff_connect()

...

arguments passed to other methods (currently none)

custom_players

TRUE or FALSE - include custom players? defaults to FALSE

Value

A tidy dataframe of rosters, joined to basic player information and basic franchise information

Methods (by class)

  • flea_conn: Fleaflicker: Returns roster data (minus age as of right now)

  • mfl_conn: MFL: returns roster data

  • sleeper_conn: Sleeper: Returns all roster data.

Examples

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

Run the code above in your browser using DataLab